mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
@@ -38,6 +38,9 @@ module.exports = function patchPTYModule (mod) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
terminal.on('data', data => {
|
terminal.on('data', data => {
|
||||||
|
if (typeof data === 'string') {
|
||||||
|
data = Buffer.from(data)
|
||||||
|
}
|
||||||
buffer = Buffer.concat([buffer, data])
|
buffer = Buffer.concat([buffer, data])
|
||||||
if (Date.now() - lastFlush > maxWindow) {
|
if (Date.now() - lastFlush > maxWindow) {
|
||||||
// Taking too much time buffering, flush to keep things interactive
|
// Taking too much time buffering, flush to keep things interactive
|
||||||
|
Reference in New Issue
Block a user