From 459d6aadd9dcc8e54fbc7ba1e05fe1dcb135d56b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 22 Dec 2018 09:39:17 +0100 Subject: [PATCH] fixed beam cursor on xterm (fixes #582) --- terminus-terminal/src/frontends/xtermFrontend.ts | 2 +- terminus-terminal/src/hterm.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index 107607db..80aec03d 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -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', ) diff --git a/terminus-terminal/src/hterm.ts b/terminus-terminal/src/hterm.ts index 86da4baa..c1468507 100644 --- a/terminus-terminal/src/hterm.ts +++ b/terminus-terminal/src/hterm.ts @@ -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