Add first headless test
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ const Terminal = require('../lib-headless/xterm.js').Terminal;
|
||||
|
||||
console.log('Creating xterm-core terminal...');
|
||||
const terminal = new Terminal();
|
||||
console.log('Writing `ls` to terminal...')
|
||||
console.log('Writing to terminal...')
|
||||
terminal.write('foo \x1b[1;31mbar\x1b[0m baz', () => {
|
||||
const bufferLine = terminal.buffer.normal.getLine(terminal.buffer.normal.cursorY);
|
||||
const contents = bufferLine.translateToString(true);
|
||||
|
||||
Reference in New Issue
Block a user