diff --git a/demo/app.js b/demo/app.js index 65eebf47..7e84665c 100644 --- a/demo/app.js +++ b/demo/app.js @@ -25,17 +25,10 @@ app.get('/js/*.js', function(req, res){ res.sendFile(__dirname + req.url); }); -const SHELL_ARGS = { - bash: ['--login'], - 'cmd.exe': [], -}; - -var shell_name = process.platform === 'win32' ? 'cmd.exe' : 'bash'; - app.post('/terminals', function (req, res) { var cols = parseInt(req.query.cols), rows = parseInt(req.query.rows), - term = pty.spawn(shell_name, SHELL_ARGS[shell_name], { + term = pty.spawn(process.platform === 'win32' ? 'cmd.exe' : 'bash', [], { encoding: null, name: 'xterm-color', cols: cols || 80, diff --git a/demo/index.html b/demo/index.html index 494b9f38..4501d518 100644 --- a/demo/index.html +++ b/demo/index.html @@ -23,43 +23,6 @@
- - - - - - - -