Skip to content

Commit

Permalink
Update xtermjs to v5.1.0.
Browse files Browse the repository at this point in the history
Also, loadAddon can be called earlier as of xterm.js #4151.
xtermjs/xterm.js#4151
  • Loading branch information
dstein64 committed Dec 20, 2022
1 parent d9f8c8a commit 5821824
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/xtermjs/xterm-addon-canvas.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion lib/xtermjs/xterm.css
Expand Up @@ -146,7 +146,6 @@
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index: 10;
color: transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/xtermjs/xterm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -497,6 +497,7 @@ const TermRunner = function(parent, options, cast) {
if (['bar', 'block', 'underline'].includes(options.cursor))
config.cursorStyle = options.cursor;
const term = new Terminal(config);
term.loadAddon(new CanvasAddon.CanvasAddon());

// 'idx' is the index of the frame being processed. Frames are written to
// the terminal at the end of process(), except for the initial frame, which
Expand Down Expand Up @@ -586,7 +587,6 @@ const TermRunner = function(parent, options, cast) {

term.onRender(process);
term.open(parent);
term.loadAddon(new CanvasAddon.CanvasAddon());
// Monkey patch the xterm.js renderer (see CursorRenderLayer.ts) so that calls to
// _renderBlurCursor become calls to _renderBlockCursor. This prevents an unfocused
// cursor.
Expand Down

0 comments on commit 5821824

Please sign in to comment.