2 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
3 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
4 * https://github.com/chjj/term.js
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 * Originally forked from (with the author's permission):
26 * Fabrice Bellard's javascript vt100 for jslinux:
27 * http://bellard.org/jslinux/
28 * Copyright (c) 2011 Fabrice Bellard
29 * The original design remains. The terminal itself
30 * has been extended to include xterm CSI codes, among
35 * Default styles for xterm.js
42 -ms-user-select: none
;
43 -webkit-user-select: none
;
51 .xterm .xterm-helpers {
55 * The z-index of the helpers must be higher than the canvases in order for
56 * IMEs to appear on top.
61 .xterm .xterm-helper-textarea {
65 /* Move textarea out of the screen to the far left, so that the cursor is not visible */
73 /** Prevent wrapping so the IME appears against the textarea at the correct position */
79 .xterm .composition-view {
80 /* TODO: Composition position got messed up somewhere */
89 .xterm .composition-view.active {
93 .xterm .xterm-viewport {
94 /* On OS X this is required in order for the scroll bar to appear fully opaque */
95 background-color: #000;
105 .xterm .xterm-screen {
109 .xterm .xterm-screen canvas {
115 .xterm .xterm-scroll-area {
119 .xterm-char-measure-element {
120 display: inline-block
;
128 .xterm.enable-mouse-events {
129 /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
133 .xterm
.xterm-cursor-pointer
,
134 .xterm .xterm-cursor-pointer {
138 .xterm.column-select.focus {
139 /* Column selection mode */
143 .xterm
.xterm-accessibility
,
144 .xterm .xterm-message {
152 pointer-events: none
;
155 .xterm .live-region {
164 /* Dim should not apply to background, so the opacity of the foreground color is applied
165 * explicitly in the generated class and reset to 1 here */
166 opacity: 1 !important
;
169 .xterm-underline-1 { text-decoration: underline
; }
170 .xterm-underline-2 { text-decoration: double underline
; }
171 .xterm-underline-3 { text-decoration: wavy underline
; }
172 .xterm-underline-4 { text-decoration: dotted underline
; }
173 .xterm-underline-5 { text-decoration: dashed underline
; }
176 text-decoration: overline
;
179 .xterm-overline.xterm-underline-1 { text-decoration: overline underline
; }
180 .xterm-overline.xterm-underline-2 { text-decoration: overline double underline
; }
181 .xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline
; }
182 .xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline
; }
183 .xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline
; }
185 .xterm-strikethrough {
186 text-decoration: line-through
;
189 .xterm-screen .xterm-decoration-container .xterm-decoration {
194 .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
198 .xterm-decoration-overview-ruler {
203 pointer-events: none
;
206 .xterm-decoration-top {