telnet

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 15 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) (io.ReadCloser, termenv.Profile, <-chan WindowSize, <-chan 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
}

func (WindowSize) String added in v1.9.5

func (w WindowSize) String() string

Jump to

Keyboard shortcuts

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