package
2.0.0-alpha.3+incompatible
Repository: https://github.com/linuxgit/gotty.git
Documentation: pkg.go.dev
# Functions
New creates a new instance of WebTTY.
WithFixedColumns sets a fixed width to TTY master.
WithFixedRows sets a fixed height to TTY master.
WithMasterPreferences sets an optional configuration of master.
WithPermitWrite sets a WebTTY to accept input from slaves.
WithReconnect enables reconnection on the master side.
WithWindowTitle sets the default window title of the session.
# Constants
User input typically from a keyboard.
Normal output to the terminal.
Ping to the server.
Pong to the browser.
Notify that the browser size has been changed.
Set terminal preference.
Make terminal to reconnect.
Set window title of the terminal.
Unknown message type, maybe sent by a bug.
Unknown message type, maybe set by a bug.
# Variables
ErrSlaveClosed is returned when the slave connection is closed.
ErrSlaveClosed indicates the function has exited by the slave.
Protocols defines the name of this protocol, which is supposed to be used to the subprotocol of Websockt streams.
# Interfaces
Slave represents a PTY slave, typically it's a local command.