Skip to content

Commit

Permalink
Bring back xtermjs scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
darekg11 committed Feb 6, 2019
1 parent 9b39070 commit f13669b
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion src/app/components/Terminal/Terminal.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@
/* On OS X this is required in order for the scroll bar to appear fully opaque */
background-color: #000;
overflow-y: scroll;
cursor: default;
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: 0;
}

.xterm .xterm-screen {
position: relative;
}

.xterm canvas {
Expand All @@ -111,18 +121,52 @@
display: inline-block;
visibility: hidden;
position: absolute;
top: 0;
left: -9999em;
line-height: normal;
}

.xterm {
cursor: text;
}

.xterm.enable-mouse-events {
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
cursor: default;
}

.xterm:not(.enable-mouse-events) {
.xterm:not.enable-mouse-events {
cursor: text;
}

.xterm.xterm-cursor-pointer {
cursor: pointer;
}

.xterm.column-select.focus {
/* Column selection mode */
cursor: crosshair;
}

.xterm .xterm-accessibility,
.xterm .xterm-message {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index: 100;
color: transparent;
}

.xterm .live-region {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}

.terminal-container {
height: calc(100vh - 112px);
}

0 comments on commit f13669b

Please sign in to comment.