telnet

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(cmds ...Operator) []byte

func MakeRenderer added in v1.8.0

func MakeRenderer(w io.Writer, profile termenv.Profile) *lipgloss.Renderer

func Proxy

func Proxy(conn net.Conn, proxy io.Writer, termCh chan string, sizeCh chan WindowSize) error

func Write

func Write(w io.Writer, cmds ...Operator) (int, error)

func WriteAndClear

func WriteAndClear(w io.Writer, cmds ...Operator) (int, error)

Types

type Operator

type Operator byte
const (
	Se Operator = 0xF0 + iota
	Nop
	DataMark
	Break
	Interrupt
	Abort
	AreYouThere
	EraseChar
	EraseLine
	GoAhead
	Subnegotiation
	Will
	Wont
	Do
	Dont
	Iac
)
const (
	BinaryTransmission Operator = iota
	Echo
	Reconnection
	SuppressGoAhead
	ApproxMessageSizeNegotiation
	Status
	TimingMark
	RemoteControlledTransAndEcho
	OutputLineWidth
	OutputPageSize
	OutputCarriageReturnDisposition
	OutputHorizontalTabStops
	OutputHorizontalTabDisposition
	OutputFormfeedDisposition
	OutputVerticalTabstops
	OutputVerticalTabDisposition
	OutputLinefeedDisposition
	ExtendedASCII
	Logout
	ByteMacro
	DataEntryTerminal
	SUPDUP
	SUPDUPOutput
	SendLocation
	TerminalType
	EndofRecord
	TACACSUserIdentification
	OutputMarking
	TerminalLocationNumber
	Telnet3270Regime
	X3PAD
	NegotiateAboutWindowSize
	TerminalSpeed
	RemoteFlowControl
	Linemode
	XDisplayLocation
	ExtendedOptionsList
)

func (Operator) String

func (i Operator) String() string

type WindowSize added in v1.8.0

type WindowSize struct {
	Width, Height uint16
}

Jump to

Keyboard shortcuts

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