2014-03-24 16:35:10 +00:00
|
|
|
/**
|
2017-09-08 07:50:43 -07:00
|
|
|
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
2014-03-24 16:35:10 +00:00
|
|
|
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
|
|
|
* https://github.com/chjj/term.js
|
2017-09-08 07:50:43 -07:00
|
|
|
* @license MIT
|
2014-03-24 16:35:10 +00:00
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
|
*
|
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
|
* THE SOFTWARE.
|
|
|
|
|
*
|
|
|
|
|
* Originally forked from (with the author's permission):
|
|
|
|
|
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
|
|
|
* http://bellard.org/jslinux/
|
|
|
|
|
* Copyright (c) 2011 Fabrice Bellard
|
|
|
|
|
* The original design remains. The terminal itself
|
|
|
|
|
* has been extended to include xterm CSI codes, among
|
|
|
|
|
* other features.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-02 13:34:01 -07:00
|
|
|
/**
|
|
|
|
|
* Default styles for xterm.js
|
2015-01-19 19:06:17 +02:00
|
|
|
*/
|
2014-03-24 16:35:10 +00:00
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm {
|
2022-05-12 10:57:12 -07:00
|
|
|
cursor: text;
|
2014-04-10 18:48:36 +00:00
|
|
|
position: relative;
|
2017-05-05 17:36:15 -07:00
|
|
|
user-select: none;
|
2017-06-07 19:23:46 -07:00
|
|
|
-ms-user-select: none;
|
|
|
|
|
-webkit-user-select: none;
|
2014-03-24 16:53:33 +00:00
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm.focus,
|
|
|
|
|
.xterm:focus {
|
2015-01-19 19:06:17 +02:00
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .xterm-helpers {
|
2016-07-12 16:03:31 -07:00
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
2017-09-02 18:41:53 -07:00
|
|
|
/**
|
|
|
|
|
* The z-index of the helpers must be higher than the canvases in order for
|
|
|
|
|
* IMEs to appear on top.
|
|
|
|
|
*/
|
2019-06-28 12:46:57 -07:00
|
|
|
z-index: 5;
|
2016-07-12 16:03:31 -07:00
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .xterm-helper-textarea {
|
2020-07-09 03:56:40 -05:00
|
|
|
padding: 0;
|
|
|
|
|
border: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
|
2016-09-29 10:50:21 +03:00
|
|
|
position: absolute;
|
2016-07-12 16:03:31 -07:00
|
|
|
opacity: 0;
|
2016-09-29 10:50:21 +03:00
|
|
|
left: -9999em;
|
2016-12-05 11:19:35 -08:00
|
|
|
top: 0;
|
2016-07-12 16:03:31 -07:00
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
2019-06-28 12:46:57 -07:00
|
|
|
z-index: -5;
|
2016-10-24 11:06:25 -07:00
|
|
|
/** Prevent wrapping so the IME appears against the textarea at the correct position */
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
resize: none;
|
2016-07-12 16:03:31 -07:00
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .composition-view {
|
2017-09-02 13:58:21 -07:00
|
|
|
/* TODO: Composition position got messed up somewhere */
|
2016-07-12 18:48:08 -07:00
|
|
|
background: #000;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
display: none;
|
|
|
|
|
position: absolute;
|
2016-07-13 20:34:55 -07:00
|
|
|
white-space: nowrap;
|
2016-08-18 11:28:10 -07:00
|
|
|
z-index: 1;
|
2016-07-12 18:48:08 -07:00
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .composition-view.active {
|
2016-07-12 18:48:08 -07:00
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .xterm-viewport {
|
2016-08-08 10:22:19 -07:00
|
|
|
/* On OS X this is required in order for the scroll bar to appear fully opaque */
|
|
|
|
|
background-color: #000;
|
2016-08-02 16:59:50 -07:00
|
|
|
overflow-y: scroll;
|
2017-12-11 10:13:17 -08:00
|
|
|
cursor: default;
|
2018-02-06 12:31:17 +01:00
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
2016-08-02 16:59:50 -07:00
|
|
|
}
|
|
|
|
|
|
2018-02-06 12:31:17 +01:00
|
|
|
.xterm .xterm-screen {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm .xterm-screen canvas {
|
2017-08-30 21:13:57 -07:00
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm .xterm-scroll-area {
|
2016-08-02 16:59:50 -07:00
|
|
|
visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-16 13:42:32 +01:00
|
|
|
.xterm-char-measure-element {
|
2016-08-02 12:42:10 -07:00
|
|
|
display: inline-block;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
position: absolute;
|
2018-03-16 13:42:32 +01:00
|
|
|
top: 0;
|
2016-08-02 12:42:10 -07:00
|
|
|
left: -9999em;
|
2018-03-16 13:42:32 +01:00
|
|
|
line-height: normal;
|
2016-08-02 12:42:10 -07:00
|
|
|
}
|
|
|
|
|
|
2017-10-19 08:44:00 -07:00
|
|
|
.xterm.enable-mouse-events {
|
2017-05-21 12:35:07 -07:00
|
|
|
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-20 08:46:13 -08:00
|
|
|
.xterm.xterm-cursor-pointer,
|
|
|
|
|
.xterm .xterm-cursor-pointer {
|
2018-05-12 07:44:30 -07:00
|
|
|
cursor: pointer;
|
2018-05-11 10:03:43 -07:00
|
|
|
}
|
|
|
|
|
|
2018-10-26 00:07:13 -05:00
|
|
|
.xterm.column-select.focus {
|
2018-06-29 20:15:17 -07:00
|
|
|
/* Column selection mode */
|
2018-06-28 15:55:44 -07:00
|
|
|
cursor: crosshair;
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-01 17:00:15 +10:00
|
|
|
.xterm .xterm-accessibility:not(.debug),
|
2018-01-24 16:34:39 -08:00
|
|
|
.xterm .xterm-message {
|
2017-12-19 12:57:58 -08:00
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
2023-02-02 06:16:38 -08:00
|
|
|
right: 0;
|
2019-06-28 12:46:57 -07:00
|
|
|
z-index: 10;
|
2017-12-19 12:57:58 -08:00
|
|
|
color: transparent;
|
2023-04-24 12:30:41 +02:00
|
|
|
pointer-events: none;
|
2017-12-19 12:57:58 -08:00
|
|
|
}
|
|
|
|
|
|
2023-09-01 17:00:15 +10:00
|
|
|
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
|
|
|
|
|
color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm .xterm-accessibility-tree {
|
|
|
|
|
user-select: text;
|
|
|
|
|
white-space: pre;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-19 12:57:58 -08:00
|
|
|
.xterm .live-region {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -9999px;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2019-04-06 16:04:50 -04:00
|
|
|
|
|
|
|
|
.xterm-dim {
|
2023-05-20 08:13:50 -07:00
|
|
|
/* Dim should not apply to background, so the opacity of the foreground color is applied
|
|
|
|
|
* explicitly in the generated class and reset to 1 here */
|
|
|
|
|
opacity: 1 !important;
|
2019-04-06 16:04:50 -04:00
|
|
|
}
|
2019-04-13 21:12:59 -04:00
|
|
|
|
2022-07-23 09:20:53 -07:00
|
|
|
.xterm-underline-1 { text-decoration: underline; }
|
|
|
|
|
.xterm-underline-2 { text-decoration: double underline; }
|
|
|
|
|
.xterm-underline-3 { text-decoration: wavy underline; }
|
|
|
|
|
.xterm-underline-4 { text-decoration: dotted underline; }
|
|
|
|
|
.xterm-underline-5 { text-decoration: dashed underline; }
|
2021-05-15 17:35:23 +02:00
|
|
|
|
2023-05-20 09:56:56 -07:00
|
|
|
.xterm-overline {
|
|
|
|
|
text-decoration: overline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
|
|
|
|
|
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
|
|
|
|
|
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
|
|
|
|
|
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
|
|
|
|
|
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
|
|
|
|
|
|
2021-05-15 17:35:23 +02:00
|
|
|
.xterm-strikethrough {
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
}
|
2022-02-03 13:44:08 -06:00
|
|
|
|
2022-02-09 09:55:30 -06:00
|
|
|
.xterm-screen .xterm-decoration-container .xterm-decoration {
|
2022-02-03 13:44:08 -06:00
|
|
|
z-index: 6;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
2022-03-08 14:45:14 -06:00
|
|
|
|
2023-05-17 06:57:13 -07:00
|
|
|
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
|
2023-05-12 16:19:03 -05:00
|
|
|
z-index: 7;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-15 10:37:38 -04:00
|
|
|
.xterm-decoration-overview-ruler {
|
2023-05-12 16:19:03 -05:00
|
|
|
z-index: 8;
|
2022-03-11 17:15:11 -05:00
|
|
|
position: absolute;
|
2022-03-11 16:53:59 -05:00
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
2022-05-12 10:59:57 -07:00
|
|
|
pointer-events: none;
|
2022-03-15 10:37:38 -04:00
|
|
|
}
|
2022-05-13 07:56:45 -07:00
|
|
|
|
|
|
|
|
.xterm-decoration-top {
|
|
|
|
|
z-index: 2;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|