summaryrefslogtreecommitdiff
path: root/test/snapshots/ttyprompt.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 23:37:38 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit21277ffc6b08f458eb9a1210a3818e40b14293d2 (patch)
tree20feccca94b87f4e75a77eaf18c1699775b9a608 /test/snapshots/ttyprompt.snap
parente7cf866a3841398880ca94b0a00841ee82e1d227 (diff)
downloadpardes-21277ffc6b08f458eb9a1210a3818e40b14293d2.tar.gz
pardes-21277ffc6b08f458eb9a1210a3818e40b14293d2.zip
tests: the terminal snapshot scripts (19: tty ttyclick ttyedit ttyfollow ttyhelp ttylook ttyonly ttypaste ttyprompt ttytaken psearch reflow respawn scroll cmdexit look-fd-deep ghostty-mid exec exec-bigdrag) are process cases, test/process/tty_terminals.zig, their goldens unchanged; checked against the old runner by Ctrl-b no longer leaving tty mode (the same 12 fail in both)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots/ttyprompt.snap')
-rw-r--r--test/snapshots/ttyprompt.snap35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/snapshots/ttyprompt.snap b/test/snapshots/ttyprompt.snap
deleted file mode 100644
index 843ffe7c..00000000
--- a/test/snapshots/ttyprompt.snap
+++ /dev/null
@@ -1,35 +0,0 @@
-# Leaving raw tty hides the shell's PROMPT and keeps the command typed at it.
-#
-# The two share one grid row, so blanking the row used to take the command with
-# the prompt and a shell out of tty read as output only. OSC 133 marks the row
-# CELL by cell, so config.tty_blank = .prompt cuts the prompt's own columns and
-# left-hugs what is left: the command lands at column 0, in line with the
-# output under it, rather than in a bay of blanks the prompt used to fill.
-#
-# `.prompt_and_input` is the old behaviour and blanks the whole row; it is a
-# comptime choice, so what THIS script pins is the default.
-file probe.txt marker
-start 31 100 -n 3
-wait 8000 probe.txt
-stable 700 20000
-# the greeting `ls` was typed at a prompt and already shows the rule: the
-# command is there, the prompt in front of it is not
-snap greeted
-# into tty and type a command WITHOUT submitting it, so the shell is sitting at
-# a prompt with input on it — the case the old behaviour erased
-key c-b
-stable 600 8000
-text echo ABCDEFGH
-stable 600 8000
-snap in-tty
-# ...and out: the prompt goes, `echo ABCDEFGH` stays, hugging the left edge
-key c-b
-stable 600 8000
-snap out-of-tty
-# The columns still have to reach the shell, and they do: the modal cursor's
-# column on a hidden-prompt row is short by exactly the prompt's width, so
-# enterTty adds it back before asking ghostty to walk the shell's own cursor
-# there. That arithmetic is pinned by the "entering tty walks the shell cursor"
-# unit test, which can put a pinned cursor on a known column; a click here
-# cannot, because leaving tty unpins and a body click on a terminal does not
-# pin it again.