Skip to content

Commit

Permalink
fix: deprecated term.setOption
Browse files Browse the repository at this point in the history
  • Loading branch information
billchurch committed Dec 9, 2021
1 parent c801ef9 commit d903da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/client/public/webssh2.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app/client/src/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ socket.on('connect', () => {
socket.on(
'setTerminalOpts',
(data: { cursorBlink: any; scrollback: any; tabStopWidth: any; bellStyle: any }) => {
term.setOption('cursorBlink', data.cursorBlink);
term.setOption('scrollback', data.scrollback);
term.setOption('tabStopWidth', data.tabStopWidth);
term.setOption('bellStyle', data.bellStyle);
term.options.cursorBlink = data.cursorBlink;
term.options.scrollback = data.scrollback;
term.options.tabStopWidth = data.tabStopWidth;
term.options.bellStyle = data.bellStyle;
}
);

Expand Down

0 comments on commit d903da8

Please sign in to comment.