Skip to content

Commit

Permalink
Merge pull request xtermjs#2241 from jerch/parser_colon_notation
Browse files Browse the repository at this point in the history
colon notation for the parser
  • Loading branch information
jerch authored Jul 6, 2019
2 parents f889796 + be62267 commit 68694da
Show file tree
Hide file tree
Showing 15 changed files with 1,058 additions and 338 deletions.
6 changes: 4 additions & 2 deletions demo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ function startServer() {
});

app.post('/terminals', function (req, res) {
const env = Object.assign({}, process.env);
env['COLORTERM'] = 'truecolor';
var cols = parseInt(req.query.cols),
rows = parseInt(req.query.rows),
term = pty.spawn(process.platform === 'win32' ? 'cmd.exe' : 'bash', [], {
name: 'xterm-256color',
cols: cols || 80,
rows: rows || 24,
cwd: process.env.PWD,
env: process.env,
cwd: env.PWD,
env: env,
encoding: USE_BINARY_UTF8 ? null : 'utf8'
});

Expand Down
205 changes: 178 additions & 27 deletions src/InputHandler.test.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 68694da

Please sign in to comment.