Documentation
¶
Overview ¶
Package termbuf holds the recent output of a terminal: the last bytes it printed plus the terminal modes that output set, so a terminal that attaches late can be put back into the state the program expects.
Two places keep one. The daemon keeps one per owned session for the browser tabs that connect to it, and the pty-host process (internal/ptyhost) keeps one for the daemon itself — after a daemon restart, that buffer is the only record of what the screen looked like.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring is a fixed-size byte buffer holding the most recent terminal output, so a terminal that connects late still sees recent scrollback — and the terminal modes that output set, which may have long since scrolled out of it.