Versions in this module Expand all Collapse all v1 v1.0.6 Oct 31, 2016 v1.0.5 Sep 28, 2016 Changes in this version + const Input + const Output + const Ping + const Pong + const ResizeTerminal + const SetPreferences + const SetReconnect + const SetWindowTitle + const SubProtocol + var DefaultOptions = &Options + var Upgrader = &websocket.Upgrader + type ArgResizeTerminal struct + Columns float64 + Rows float64 + type ClientContext struct + Command *exec.Cmd + Conn *websocket.Conn + Options *Options + Pty *os.File + Request *http.Request + TitleTemplate *template.Template + WriteMutex *sync.Mutex + func New(cmd *exec.Cmd, conn *websocket.Conn, request *http.Request, opts *Options) (*ClientContext, error) + func (ctx *ClientContext) HandleClient() + type ContextVars struct + Command string + Hostname string + Pid int + RemoteAddr string + type HtermPrefernces struct + AltBackspaceIsMetaBackspace bool + AltGrMode *string + AltIsMeta bool + AltSendsWhat string + AudibleBellSound string + BackgroundColor string + BackgroundImage string + BackgroundPosition string + BackgroundSize string + BackspaceSendsBackspace bool + CharacterMapOverrides map[string]map[string]string + ClearSelectionAfterCopy bool + CloseOnExit bool + ColorPaletteOverrides []*string + CopyOnSelect bool + CtrlCCopy bool + CtrlPlusMinusZeroZoom bool + CtrlVPaste bool + CursorBlink bool + CursorBlinkCycle [2]int + CursorColor string + DesktopNotificationBell bool + EastAsianAmbiguousAsTwoColumn bool + Enable8BitControl *bool + EnableBold *bool + EnableBoldAsBright bool + EnableClipboardNotice bool + EnableClipboardWrite bool + EnableDec12 bool + Environment map[string]string + FontFamily string + FontSize int + FontSmoothing string + ForegroundColor string + HomeKeysScroll bool + Keybindings map[string]string + MaxStringSequence int + MediaKeysAreFkeys bool + MetaSendsEscape bool + MousePasteButton *int + PageKeysScroll bool + PassAltNumber *bool + PassCtrlNumber *bool + PassMetaNumber *bool + PassMetaV bool + ReceiveEncoding string + ScrollOnKeystroke bool + ScrollOnOutput bool + ScrollWheelMoveMultiplier int + ScrollbarVisible bool + SendEncoding string + ShiftInsertPaste bool + UseDefaultWindowCopy bool + UserCss string + type Options struct + CloseSignal int + EnableCustomTitle bool + EnableRandomUrl bool + EnableReconnect bool + Once bool + PermitWrite bool + Preferences HtermPrefernces + RandomUrlLength int + RawPreferences map[string]interface{} + ReconnectTime int + TitleFormat string