Documentation
¶
Overview ¶
Package query answers terminal capability queries on behalf of a terminal that cannot.
TUI libraries such as bubbletea v1 and termenv probe the terminal at startup with OSC 10/OSC 11 (foreground/background color) and CSI 6n (cursor position) and wait several seconds for each reply. When Atmos owns the pseudo-terminal (for example a recorded session or a PTY without forwarded host input) nothing answers, so every child process would stall. Responder scans PTY output for those queries and writes the replies back to the PTY so children start immediately.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader forwards everything read from the source unchanged while answering terminal queries.
type Responder ¶
type Responder struct {
// contains filtered or unexported fields
}
Responder detects terminal queries in a stream of output and writes replies to a sink. It is safe for concurrent use and tolerates queries split across Scan calls.
func NewResponder ¶
NewResponder returns a Responder that writes replies to sink (typically the PTY master). A nil sink disables replies.