Documentation
¶
Overview ¶
Package terminal provides terminal input, scrolling, and raw-mode lifecycle primitives independently of router state and pane composition.
Index ¶
- Constants
- func PaneScroll(key byte, offset, rows, total int) (next int, follow, handled bool)
- func PaneWheelKey(action byte) byte
- func SupportsFaint(ctx context.Context, mode string) (bool, error)
- func WithRawPane(ctx context.Context, stdin, stdout *os.File, enter, leave string, ...) (err error)
- type Mouse
Constants ¶
View Source
const ( PaneWheelUp byte = 0x80 PaneWheelDown byte = 0x81 )
Variables ¶
This section is empty.
Functions ¶
func PaneScroll ¶
Shared scroll offsets and default diff follow policy. Transcript consumers resume at the last full viewport and own their follow-key bindings.
func PaneWheelKey ¶
func SupportsFaint ¶
SupportsFaint applies an invocation-local override or checks this process's ancestors for mosh-server. Detached multiplexers may hide that ancestry; their callers can explicitly choose off. Unrelated sessions are never scanned.
Types ¶
Click to show internal directories.
Click to hide internal directories.