Fix color for char under focused BLOCK cursor (#2521)

This commit is contained in:
CHaBou 2017-12-04 22:28:40 +01:00 committed by Leo Lamprecht
parent da10f01a00
commit 1e6acfc109
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@ export default class StyleSheet extends React.PureComponent {
const {
customCSS,
colors,
backgroundColor,
cursorColor,
fontSize,
fontFamily,
@ -75,7 +76,7 @@ export default class StyleSheet extends React.PureComponent {
.terminal.focus:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar) .terminal-cursor {
background-color: ${cursorColor};
color: #000;
color: ${backgroundColor};
}
.terminal:not(.focus) .terminal-cursor {

View file

@ -89,6 +89,7 @@ export default class Terms extends Component {
terms: this.terms,
activeSession: this.props.activeSession,
sessions: this.props.sessions,
backgroundColor: this.props.backgroundColor,
borderColor: this.props.borderColor,
cursorShape: this.props.cursorShape,
cursorBlink: this.props.cursorBlink,
@ -119,6 +120,7 @@ export default class Terms extends Component {
{this.props.customChildren}
<StyleSheet
colors={this.props.colors}
backgroundColor={this.props.backgroundColor}
customCSS={this.props.customCSS}
cursorColor={this.props.cursorColor}
fontSize={this.props.fontSize}