Merge pull request #447 from Tyriar/425_xon_xoff_on_280

Sync with pty process using XOFF and XON
This commit is contained in:
Daniel Imms
2017-01-10 21:20:58 -08:00
committed by GitHub
3 changed files with 1039 additions and 928 deletions
+5 -1
View File
@@ -92,7 +92,11 @@ describe('xterm output comparison', function() {
var from_pty = pty_write_read(in_file);
// uncomment this to get log from terminal
//console.log = function(){};
xterm.write(from_pty);
// Perform a synchronous .write(data)
xterm.writeBuffer.push(from_pty);
xterm.innerWrite();
var from_emulator = terminalToString(xterm);
console.log = CONSOLE_LOG;
var expected = fs.readFileSync(filename.split('.')[0] + '.text', 'utf8');
+9
View File
@@ -14,6 +14,15 @@ describe('xterm.js', function() {
xterm.compositionHelper = {
keydown: function(){ return true; }
};
// Force synchronous refreshes
xterm.queueRefresh = function(start, end) {
xterm.refresh(start, end);
};
// Force synchronous writes
xterm.write = function(data) {
xterm.writeBuffer.push(data);
xterm.innerWrite();
};
});
describe('getOption', function() {
+1025 -927
View File
File diff suppressed because it is too large Load Diff