mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
parent
1c8288bfe1
commit
e9999ee883
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ module.exports = function patchPTYModule (mod) {
|
|||
}
|
||||
|
||||
terminal.on('data', data => {
|
||||
if (typeof data === 'string') {
|
||||
data = Buffer.from(data)
|
||||
}
|
||||
buffer = Buffer.concat([buffer, data])
|
||||
if (Date.now() - lastFlush > maxWindow) {
|
||||
// Taking too much time buffering, flush to keep things interactive
|
||||
|
|
Loading…
Reference in a new issue