From d8717d64bac4f522a60ca599663f2be894c97ca2 Mon Sep 17 00:00:00 2001 From: npezza93 Date: Mon, 14 Aug 2017 18:11:22 -0400 Subject: [PATCH] Add visual bell styling for underline and bar cursor types --- src/xterm.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xterm.css b/src/xterm.css index 32f2a7c8..0da9e041 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -91,6 +91,7 @@ .terminal .terminal-cursor { position: relative; + transition: background-color 150ms ease; } .terminal:not(.focus) .terminal-cursor { @@ -108,6 +109,7 @@ content: ''; position: absolute; background-color: #fff; + transition: background-color 150ms ease; } .terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before { @@ -124,9 +126,13 @@ height: 1px; } -.visual-bell-active .terminal-cursor { +.terminal.focus.xterm-cursor-style-block.visual-bell-active .terminal-cursor { background-color: #ccc !important; } +.terminal.focus.xterm-cursor-style-bar.visual-bell-active .terminal-cursor::before, +.terminal.focus.xterm-cursor-style-underline.visual-bell-active .terminal-cursor::before { + background-color: transparent; +} .terminal .composition-view { background: #000;