mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 00:36:35 +00:00
fix: harden PTY events and configured roots
This commit is contained in:
1 parent
2575b30dfc
commit
31b40f39e4
14 files changed
+180
-40
No files matched your search
@@ -338,14 +338,12 @@ export const captureTerminalFrames = (options: {
|
||||
readonly started: number;
|
||||
readonly temporaryRoot: string;
|
||||
readonly onOutput: () => void;
|
||||
readonly onFirstOutput: () => void;
|
||||
readonly renderer: TerminalRenderer;
|
||||
readonly checkpoints: ProcessCheckpoints;
|
||||
}): (() => boolean) => {
|
||||
let outputBytes = 0;
|
||||
let truncated = false;
|
||||
options.terminal.onData((data) => {
|
||||
options.onFirstOutput();
|
||||
options.onOutput();
|
||||
const bytes = Buffer.byteLength(data);
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user