From c7eb727220edc4a48423c49811296c953ca44f08 Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Fri, 26 Oct 2018 00:07:13 -0500 Subject: [PATCH] Only show cross-hairs when terminal has focus Fixes #1767 --- src/Terminal.ts | 4 ++-- src/xterm.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Terminal.ts b/src/Terminal.ts index e887146287..4674f77684 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -1154,9 +1154,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II */ public updateCursorStyle(ev: KeyboardEvent): void { if (this.selectionManager && this.selectionManager.shouldColumnSelect(ev)) { - this.element.classList.add('xterm-cursor-crosshair'); + this.element.classList.add('column-select'); } else { - this.element.classList.remove('xterm-cursor-crosshair'); + this.element.classList.remove('column-select'); } } diff --git a/src/xterm.css b/src/xterm.css index 8e129f50fe..24cd475f02 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -139,7 +139,7 @@ cursor: pointer; } -.xterm.xterm-cursor-crosshair { +.xterm.column-select.focus { /* Column selection mode */ cursor: crosshair; }