Skip to content

Commit

Permalink
fix: xterm alt buffer mode behaves oddly for clients that do not enab…
Browse files Browse the repository at this point in the history
…le splitTerminals

Fixes #5003
  • Loading branch information
starpit committed Jun 26, 2020
1 parent 7e714dd commit ef48aab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/plugin-bash-like/src/pty/client.ts
Expand Up @@ -53,7 +53,7 @@ const exitAltBufferPattern = /\x1b\[\??(47|1047|1049)l/

import copy from './copy'

import '../../web/css/static/xterm.css'
import '../../web/scss/xterm.scss'

interface Size {
resizeGeneration: number
Expand Down
Expand Up @@ -39,8 +39,8 @@ disabled see https://github.com/IBM/kui/issues/3939
height: auto !important;
}

/* alt buffer mode */
.xterm-alt-buffer-mode {
/* alt buffer mode */
&.xterm-alt-buffer-mode, .xterm-alt-buffer-mode { /* no-splitTerminal and splitTerminal variants */
.xterm-container .xterm-rows.xterm-focus .xterm-cursor.xterm-cursor-block {
background-color: var(--color-base08);
color: var(--color-base00);
Expand Down
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

@import '~@kui-shell/plugin-bash-like/web/css/static/xterm.css';
@import '~@kui-shell/plugin-bash-like/web/scss/xterm';

.kui--terminal[data-needs-hysteresis='true'][data-got-some-data='false'] .xterm {
opacity: 0;
Expand Down

0 comments on commit ef48aab

Please sign in to comment.