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
39 font-feature-settings: "liga" 0;
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 {
63 * HACK: to fix IE's blinking cursor
64 * 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;
132 .xterm.enable-mouse-events {
133 /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
137 .xterm.xterm-cursor-pointer {
141 .xterm.column-select.focus {
142 /* Column selection mode */
146 .xterm .xterm-accessibility,
147 .xterm .xterm-message {
157 .xterm .live-region {
170 text-decoration: underline;