From 8110fef3c0849ae69b0de6b68106fbe61edc959b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 13 Oct 2018 18:54:21 +0200 Subject: [PATCH] reversed cursor blink cycle (fixes #422) --- terminus-terminal/src/frontends/htermFrontend.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/terminus-terminal/src/frontends/htermFrontend.ts b/terminus-terminal/src/frontends/htermFrontend.ts index b3967973..77b4faf3 100644 --- a/terminus-terminal/src/frontends/htermFrontend.ts +++ b/terminus-terminal/src/frontends/htermFrontend.ts @@ -235,5 +235,12 @@ export class HTermFrontend extends Frontend { size.height += this.configuredLinePadding return size } + + const onCursorBlink_ = this.term.onCursorBlink_.bind(this.term) + + this.term.onCursorBlink_ = () => { + this.term.cursorNode_.style.opacity = '0' + onCursorBlink_() + } } }