Documentation
¶
Overview ¶
Package termfake is a stand-in program for the terminal's tests: it runs in a tab, asks the terminal what it is (DA1 and DA2, as Claude Code does), says what came back, and then does what keys ask, so a test can drive a tab end to end through the real window.
S print the terminal's size ("size=COLSxROWS")
B ring the bell (the tab waits for the user)
L print an https link
O print an OSC 8 link to a vscode:// address (which must stay blocked)
W work: redraw a status line every 250 ms, as an agent does through a turn
D done: stop working
0-9 exit with that code
Return a new line
anything else is echoed back as "typed=<text>" once Return comes
Started as "termfake trust", it first asks Claude Code's workspace-trust question and waits for 1 or Return. "quiet" (in any order with "trust") still asks the terminal but prints none of its own diagnostics, for screenshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.