Versions in this module Expand all Collapse all v1 v1.10.0 Dec 4, 2026 v1.9.2 Dec 3, 2026 v1.9.1 Nov 30, 2026 v1.9.0 Nov 30, 2026 v1.8.1 Nov 29, 2026 Changes in this version type Reason + const ReasonDisplayFailed v1.8.0 Nov 28, 2026 Changes in this version + const KnownCertsFile + func Classify(err error) (Kind, Reason) + func Fingerprint(cert *x509.Certificate) string + func Retryable(err error) bool + type Button int + const ButtonLeft + const ButtonMiddle + const ButtonRight + const ButtonX1 + const ButtonX2 + type CertError struct + Addr string + Fingerprint string + Known string + NotAfter time.Time + Subject string + func (e *CertError) Error() string + type Config struct + Addr string + Admin bool + ClientName string + Clipboard bool + Dial func(context.Context, string, string) (net.Conn, error) + Domain string + Height int + KeyboardLayout uint32 + Log func(string) + Password func(context.Context) (string, error) + Scale int + Security Security + Timeout time.Duration + User string + VerifyCert func(addr string, chain []*x509.Certificate) error + Width int + type Error struct + Code uint32 + Err error + Kind Kind + Reason Reason + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Kind int + const KindAuth + const KindCert + const KindLicense + const KindNetwork + const KindOther + const KindSecurity + const KindServer + type KnownCerts struct + func OpenKnownCerts(path string) (*KnownCerts, error) + func (k *KnownCerts) Contents() ([]byte, error) + func (k *KnownCerts) Forget(addr string) error + func (k *KnownCerts) Known(addr string) (string, bool) + func (k *KnownCerts) Merge(data []byte) (int, error) + func (k *KnownCerts) Path() string + func (k *KnownCerts) Trust(addr, fingerprint string) error + func (k *KnownCerts) Verify(addr string, chain []*x509.Certificate) error + type Options struct + AutoReconnect bool + type Pointer struct + Default bool + Hidden bool + HotX int + HotY int + Image *image.RGBA + Version uint64 + type Reason int + const ReasonAccountDisabled + const ReasonAccountExpired + const ReasonAccountLocked + const ReasonAccountRestricted + const ReasonAdminEnded + const ReasonIdleTimeout + const ReasonLoggedOff + const ReasonLogonFailure + const ReasonLogonTimeout + const ReasonLogonTypeNotGranted + const ReasonNone + const ReasonPasswordExpired + const ReasonPasswordMustChange + const ReasonProtocol + const ReasonReplaced + const ReasonServerDenied + type Security string + const SecurityAuto + const SecurityNLA + const SecurityTLS + type Session struct + OnChange func() + OnClipboard func(text string) + func New(cfg Config, opts Options) *Session + func (s *Session) Close() + func (s *Session) CopyFrame(dst *image.RGBA, since uint64) (*image.RGBA, uint64, image.Rectangle) + func (s *Session) CtrlAltDel() + func (s *Session) Key(scancode uint16, extended, down bool) + func (s *Session) MouseButton(x, y int, b Button, down bool) + func (s *Session) MouseMove(x, y int) + func (s *Session) Pointer() Pointer + func (s *Session) PointerPosition() (image.Point, bool) + func (s *Session) Reconnect() + func (s *Session) ReleaseAll() + func (s *Session) Resize(width, height, scale int) + func (s *Session) SetClipboard(text string) + func (s *Session) SetConfig(cfg Config) + func (s *Session) SetVisible(visible bool) + func (s *Session) Start() + func (s *Session) Status() Status + func (s *Session) SyncLocks(capsLock, numLock, scrollLock, kanaLock bool) + func (s *Session) Unicode(r rune, down bool) + func (s *Session) Wheel(x, y, dx, dy int) + type State int + const Connected + const Connecting + const Disconnected + const Failed + const Idle + const Reconnecting + type Status struct + Attempt int + Connects int + Err error + Height int + Since time.Time + State State + Step Step + Width int + type Step int + const StepAuth + const StepCapabilities + const StepDial + const StepLicense + const StepReady + const StepTLS