mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #447 from Tyriar/425_xon_xoff_on_280
Sync with pty process using XOFF and XON
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user