T35: review round 2: a program's link inside a prompt keeps its target and carries the prompt's number in its id, and a prompt that starts inside a link left open opens it again with the number, so a prompt all in links still starts on its first row; controls vte runs inside an escape go on before it, so only the ESC waits and a long run of them keeps the pty reading
CI / platforms (ubuntu-24.04) (push) Successful in 1m20s
CI / platforms (windows-latest) (push) Successful in 2m28s
CI / macos (push) Successful in 11m21s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-17 00:17:38 -04:00
1 parent 310c219386
commit e2bb615a19
6 files changed
+136 -33

No files matched your search

+9
View File
@@ -338,6 +338,15 @@ mod tests {
assert_eq!(ran.prompt, [0], "the prompt's cell, not the output's");
}
#[test]
fn a_long_escape_of_controls_keeps_the_pty_reading() {
let ran = run(
"printf '\\033'; head -c 3000000 /dev/zero; printf '[0mREADY'",
(40, 4),
);
assert_eq!(ran.text, "READY");
}
#[test]
fn the_foreground_is_the_program_s_own_group() {
let launch = Launch {