diff --git a/.eslintrc.js b/.eslintrc.js index cc1855154..ddbd18e27 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,8 @@ module.exports = { }, "ignorePatterns": [ "**/typings/*.d.ts", - "scripts/**/*" + "scripts/**/*", + "examples/**/*", ], "plugins": [ "@typescript-eslint" diff --git a/examples/electron/README.md b/examples/electron/README.md index 51299d9ef..7f05f18b9 100644 --- a/examples/electron/README.md +++ b/examples/electron/README.md @@ -1,12 +1,18 @@ -This is a minimal example of getting a terminal running in Electron using [node-pty](https://github.com/Tyriar/node-pty) and [xterm.js](https://github.com/sourcelair/xterm.js). +This is a minimal example of getting a terminal running in Electron using [node-pty](https://github.com/microsoft/node-pty) and [xterm.js](https://github.com/xtermjs/xterm.js).  +It works by using xterm.js on the renderer process and node-pty on the main process with IPC to communicate back and forth. + ## Usage ```bash -# Install npm dependencies using Electron's version of V8 -./npm_install.sh +# Install dependencies (Windows) +./npm-install.bat + +# Install dependencies (non-Windows) +./npm-install.sh + # Launch the app npm start ``` diff --git a/examples/electron/index.html b/examples/electron/index.html index 4aa1368fe..07af52a1e 100644 --- a/examples/electron/index.html +++ b/examples/electron/index.html @@ -7,8 +7,7 @@
+ + -