termfake

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Main

func Main() int

Main runs the stand-in and returns its exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL