Versions in this module Expand all Collapse all v1 v1.0.0-alpha1 Sep 27, 2023 v0 v0.1.0 Jul 19, 2020 Changes in this version + const ABORT + const AO + const AYT + const BREAK + const CHARSET_ACCEPTED + const CHARSET_REJECTED + const CHARSET_REQUEST + const DM + const DO + const DONT + const EC + const EL + const ENVIRON_ESC + const ENVIRON_IS + const ENVIRON_SEND + const ENVIRON_USERVAR + const ENVIRON_VALUE + const ENVIRON_VAR + const EOF + const EOR + const GA + const IAC + const IP + const LINEMODE_MODE + const LINEMODE_MODE_ACK + const LINEMODE_MODE_EDIT + const LINEMODE_MODE_LIT_ECHO + const LINEMODE_MODE_SOFT_TAB + const LINEMODE_MODE_TRAPSIG + const MSDP_ARRAY_CLOSE + const MSDP_ARRAY_OPEN + const MSDP_TABLE_CLOSE + const MSDP_TABLE_OPEN + const MSDP_VAL + const MSDP_VAR + const MSSP_VAL + const MSSP_VAR + const MTTS_256_COLORS + const MTTS_ANSI + const MTTS_MOUSE_TRACKING + const MTTS_OSC_COLOR_PALETTE + const MTTS_PROXY + const MTTS_SCREEN_READER + const MTTS_UTF8 + const MTTS_VT100 + const NOP + const OPT_ATCP + const OPT_CHARSET + const OPT_ENVIRON + const OPT_EOR + const OPT_GMCP + const OPT_LINEMODE + const OPT_MCCP + const OPT_MSDP + const OPT_MSP + const OPT_MSSP + const OPT_MXP + const OPT_NAWS + const OPT_NEW_ENVIRON + const OPT_TM + const OPT_TTYPE + const PingInterval + const SB + const SE + const SUSP + const TTYPE_IS + const TTYPE_SEND + const WILL + const WONT + var CmdNames = map[byte]string + var ErrClosed = errors.New("channel closed") + var ErrInvalidCommand = errors.New("invalid command") + var ErrMaxConnection = errors.New("maximum connection count reached") + var MaxSessionConnections = 5 + var TermTypes = [][]byte + func Close(c io.Closer) + func NewMultiWriter(writer io.WriteCloser) *multiWriter + func SetLogger(logger *log.Logger) + type MultiWriterEntry struct + func NewMultiWriterEntry(writer io.WriteCloser) *MultiWriterEntry + type Session struct + RemoteIp string + func (sess *Session) Attach(me *MultiWriterEntry) error + func (sess *Session) DumpOptionByte(b byte, printable bool) + func (sess *Session) FlushTelnetBuffer() + func (sess *Session) Id() string + func (sess *Session) SendAtcp(text string) + func (sess *Session) SendCommand(command string) + func (sess *Session) SendGmcp(text string) + func (sess *Session) SendMxp(text string) + func (sess *Session) SendNaws(width, height byte) + func (sess *Session) TelnetDebug(text ...string) + func (sess *Session) Token() string + type Telnet struct + Charset string + Debug bool + Host string + MultiConnection bool + Port int + Secure bool + SecureVerify bool + SendRemoteIp bool + func (t *Telnet) Dial() (conn net.Conn, err error) + func (t *Telnet) NewSession(sid string, rwc io.ReadWriteCloser, onClose func(s *Session)) (sess *Session, err error)