X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Fxterm.css;h=89daf9e3e1a4b3bf8ba0d17b92fcc5798caa017b;hb=HEAD;hp=b7f120f9c67703f7216b7093d8198142da520b76;hpb=670fb01fbfc5c095f3479f912a1c874724ffe8f2;p=mirror_xterm.js.git diff --git a/src/xterm.css b/src/xterm.css index b7f120f..89daf9e 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -41,6 +41,9 @@ font-family: courier-new, courier, monospace; font-feature-settings: "liga" 0; position: relative; + user-select: none; + -ms-user-select: none; + -webkit-user-select: none; } .terminal.focus, @@ -86,60 +89,40 @@ text-decoration: none; } -.terminal:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar) .terminal-cursor { - background-color: #fff; - color: #000; +.terminal .terminal-cursor { + position: relative; } .terminal:not(.focus) .terminal-cursor { outline: 1px solid #fff; outline-offset: -1px; - background-color: transparent; -} - -.terminal:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar).focus.xterm-cursor-blink .terminal-cursor { - animation: xterm-cursor-blink 1.2s infinite step-end; } -@keyframes xterm-cursor-blink { - 0% { } - 50% { - background-color: transparent; - color: inherit; - } +.terminal.xterm-cursor-style-block.focus:not(.xterm-cursor-blink-on) .terminal-cursor { + background-color: #fff; + color: #000; } -.terminal.xterm-cursor-style-bar .terminal-cursor, -.terminal.xterm-cursor-style-underline .terminal-cursor { - position: relative; -} -.terminal.xterm-cursor-style-bar .terminal-cursor::before, -.terminal.xterm-cursor-style-underline .terminal-cursor::before { - content: ""; - display: block; +.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before, +.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { + content: ''; position: absolute; background-color: #fff; } -.terminal.xterm-cursor-style-bar .terminal-cursor::before { + +.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before { top: 0; - bottom: 0; left: 0; + bottom: 0; width: 1px; } -.terminal.xterm-cursor-style-underline .terminal-cursor::before { + +.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { bottom: 0; left: 0; right: 0; height: 1px; } -.terminal.xterm-cursor-style-bar.focus.xterm-cursor-blink .terminal-cursor::before, -.terminal.xterm-cursor-style-underline.focus.xterm-cursor-blink .terminal-cursor::before { - animation: xterm-cursor-non-bar-blink 1.2s infinite step-end; -} -@keyframes xterm-cursor-non-bar-blink { - 0% { background-color: #fff; } - 50% { background-color: transparent; } -} .terminal .composition-view { background: #000; @@ -160,7 +143,8 @@ overflow-y: scroll; } -.terminal .xterm-wide-char { +.terminal .xterm-wide-char, +.terminal .xterm-normal-char { display: inline-block; } @@ -186,6 +170,25 @@ left: -9999em; } +.terminal.enable-mouse-events { + /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ + cursor: default; +} + +.terminal .xterm-selection { + position: absolute; + top: 0; + left: 0; + z-index: 1; + opacity: 0.3; + pointer-events: none; +} + +.terminal .xterm-selection div { + position: absolute; + background-color: #fff; +} + /* * Determine default colors for xterm.js */ @@ -201,6 +204,10 @@ text-decoration: blink; } +.terminal .xterm-blink.xterm-underline { + text-decoration: blink underline; +} + .terminal .xterm-hidden { visibility: hidden; }