@@ -384,3 +384,167 @@ div.CodeMirror-dragcursors {
384
384
/* Help users use markselection to safely style text background */
385
385
span .CodeMirror-selectedtext { background : none; }
386
386
387
+ /**
388
+ * Copyright (c) 2014 The xterm.js authors. All rights reserved.
389
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
390
+ * https://github.com/chjj/term.js
391
+ * @license MIT
392
+ *
393
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
394
+ * of this software and associated documentation files (the "Software"), to deal
395
+ * in the Software without restriction, including without limitation the rights
396
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
397
+ * copies of the Software, and to permit persons to whom the Software is
398
+ * furnished to do so, subject to the following conditions:
399
+ *
400
+ * The above copyright notice and this permission notice shall be included in
401
+ * all copies or substantial portions of the Software.
402
+ *
403
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
404
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
405
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
406
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
407
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
408
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
409
+ * THE SOFTWARE.
410
+ *
411
+ * Originally forked from (with the author's permission):
412
+ * Fabrice Bellard's javascript vt100 for jslinux:
413
+ * http://bellard.org/jslinux/
414
+ * Copyright (c) 2011 Fabrice Bellard
415
+ * The original design remains. The terminal itself
416
+ * has been extended to include xterm CSI codes, among
417
+ * other features.
418
+ */
419
+
420
+ /**
421
+ * Default styles for xterm.js
422
+ */
423
+
424
+ .xterm {
425
+ font-feature-settings : "liga" 0 ;
426
+ position : relative;
427
+ user-select : none;
428
+ -ms-user-select : none;
429
+ -webkit-user-select : none;
430
+ }
431
+
432
+ .xterm .focus ,
433
+ .xterm : focus {
434
+ outline : none;
435
+ }
436
+
437
+ .xterm .xterm-helpers {
438
+ position : absolute;
439
+ top : 0 ;
440
+ /**
441
+ * The z-index of the helpers must be higher than the canvases in order for
442
+ * IMEs to appear on top.
443
+ */
444
+ z-index : 10 ;
445
+ }
446
+
447
+ .xterm .xterm-helper-textarea {
448
+ /*
449
+ * HACK: to fix IE's blinking cursor
450
+ * Move textarea out of the screen to the far left, so that the cursor is not visible.
451
+ */
452
+ position : absolute;
453
+ opacity : 0 ;
454
+ left : -9999em ;
455
+ top : 0 ;
456
+ width : 0 ;
457
+ height : 0 ;
458
+ z-index : -10 ;
459
+ /** Prevent wrapping so the IME appears against the textarea at the correct position */
460
+ white-space : nowrap;
461
+ overflow : hidden;
462
+ resize : none;
463
+ }
464
+
465
+ .xterm .composition-view {
466
+ /* TODO: Composition position got messed up somewhere */
467
+ background : # 000 ;
468
+ color : # FFF ;
469
+ display : none;
470
+ position : absolute;
471
+ white-space : nowrap;
472
+ z-index : 1 ;
473
+ }
474
+
475
+ .xterm .composition-view .active {
476
+ display : block;
477
+ }
478
+
479
+ .xterm .xterm-viewport {
480
+ /* On OS X this is required in order for the scroll bar to appear fully opaque */
481
+ background-color : # 000 ;
482
+ overflow-y : scroll;
483
+ cursor : default;
484
+ position : absolute;
485
+ right : 0 ;
486
+ left : 0 ;
487
+ top : 0 ;
488
+ bottom : 0 ;
489
+ }
490
+
491
+ .xterm .xterm-screen {
492
+ position : relative;
493
+ }
494
+
495
+ .xterm .xterm-screen canvas {
496
+ position : absolute;
497
+ left : 0 ;
498
+ top : 0 ;
499
+ }
500
+
501
+ .xterm .xterm-scroll-area {
502
+ visibility : hidden;
503
+ }
504
+
505
+ .xterm-char-measure-element {
506
+ display : inline-block;
507
+ visibility : hidden;
508
+ position : absolute;
509
+ top : 0 ;
510
+ left : -9999em ;
511
+ line-height : normal;
512
+ }
513
+
514
+ .xterm {
515
+ cursor : text;
516
+ }
517
+
518
+ .xterm .enable-mouse-events {
519
+ /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
520
+ cursor : default;
521
+ }
522
+
523
+ .xterm .xterm-cursor-pointer {
524
+ cursor : pointer;
525
+ }
526
+
527
+ .xterm .column-select .focus {
528
+ /* Column selection mode */
529
+ cursor : crosshair;
530
+ }
531
+
532
+ .xterm .xterm-accessibility ,
533
+ .xterm .xterm-message {
534
+ position : absolute;
535
+ left : 0 ;
536
+ top : 0 ;
537
+ bottom : 0 ;
538
+ right : 0 ;
539
+ z-index : 100 ;
540
+ color : transparent;
541
+ }
542
+
543
+ .xterm .live-region {
544
+ position : absolute;
545
+ left : -9999px ;
546
+ width : 1px ;
547
+ height : 1px ;
548
+ overflow : hidden;
549
+ }
550
+
0 commit comments