console

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEscapeChar

func FormatEscapeChar(b byte) string

func HandleResize

func HandleResize(localFd, remoteFd uintptr) func()

HandleResize syncs localFd → remoteFd terminal size and relays SIGWINCH; returned cleanup stops the signal handler.

func ParseEscapeChar

func ParseEscapeChar(s string) (byte, error)

ParseEscapeChar parses --escape-char: caret notation ("^]", "^A") or a single raw byte.

func Relay

func Relay(rw io.ReadWriter, escapeKeys []byte) error

Relay runs bidirectional I/O with escape-sequence detection. Caller must close rw to unblock the unfinished goroutine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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