Skip to content

Commit

Permalink
Merge branch 'master' into xterm41
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar authored Oct 7, 2019
2 parents 00fd05c + d15af01 commit a3c540e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/electron/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>node-pty Electron example</title>
<link rel="Stylesheet" href="./node_modules/xterm/lib/xterm.css">
<link rel="Stylesheet" href="./node_modules/xterm/css/xterm.css">
</head>
<body>
<div id="xterm"></div>
Expand Down
4 changes: 1 addition & 3 deletions examples/electron/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ const xterm = new Terminal();
xterm.open(document.getElementById('xterm'));

// Setup communication between xterm.js and node-pty
xterm.on('data', (data) => {
ptyProcess.write(data);
});
xterm.onData(data => ptyProcess.write(data));
ptyProcess.on('data', function (data) {
xterm.write(data);
});

0 comments on commit a3c540e

Please sign in to comment.