1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-24 19:13:31 +03:00

fixed beam cursor on xterm (fixes #582)

This commit is contained in:
Eugene Pankov 2018-12-22 09:39:17 +01:00
parent 21d533c7cf
commit 459d6aadd9
2 changed files with 1 additions and 2 deletions

View File

@ -100,7 +100,7 @@ export class XTermFrontend extends Frontend {
this.xterm.setOption('bellStyle', config.terminal.bell)
this.xterm.setOption('cursorStyle', {
beam: 'bar'
}[config.terminal.cuxrsor] || config.terminal.cursor)
}[config.terminal.cursor] || config.terminal.cursor)
this.xterm.setOption('cursorBlink', config.terminal.cursorBlink)
this.xterm.setOption('macOptionIsMeta', config.terminal.altIsMeta)
// this.xterm.setOption('colors', )

View File

@ -52,7 +52,6 @@ hterm.hterm.Terminal.prototype.applyCursorShape = function () {
[hterm.hterm.Terminal.cursorShape.BEAM, false],
]
let modeNumber = this.cursorMode || 1
console.log('mode', modeNumber)
if (modeNumber >= modes.length) {
console.warn('Unknown cursor style: ' + modeNumber)
return