diff --git a/demo/style.css b/demo/style.css index dae6e91..c93ca74 100644 --- a/demo/style.css +++ b/demo/style.css @@ -21,6 +21,6 @@ h1 { padding: 2px; } -#terminal-container .terminal .terminal-cursor { +#terminal-container .terminal:focus .terminal-cursor { background-color: #fafafa; } diff --git a/src/xterm.css b/src/xterm.css index ba2298a..06edf04 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -51,6 +51,12 @@ color: #000; } +.terminal:not(:focus) .terminal-cursor { + outline: 1px solid #fff; + outline-offset: -1px; + background-color: transparent; +} + /* * Determine default colors for xterm.js */