input

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePrefix

func HandlePrefix(w io.Writer, b byte) (bool, error)

HandlePrefix processes the byte after the prefix key.

Types

type AdminStateFunc

type AdminStateFunc func() *mux.AdminState

AdminStateFunc returns the current admin panel state. Used by the kick action to resolve the selected connection ID.

type Processor

type Processor struct {
	PrefixKey      byte
	AdminState     AdminStateFunc
	Prefix         bool
	HUDLocked      bool
	GotoMode       bool
	AdminOpen      bool
	ScrollMode     bool
	GotoBuf        []byte
	LastPrefixTime time.Time
}

Processor handles prefix key state and translates raw input bytes into proto messages. Used by both the local client and SSH/relay bridges.

func (*Processor) Process

func (p *Processor) Process(w io.Writer, buf []byte, n int) error

Process processes a buffer of input bytes and writes proto messages to w.

Jump to

Keyboard shortcuts

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