Versions in this module Expand all Collapse all v0 v0.9.0 Aug 12, 2026 Changes in this version type Cfg + Identity string v0.8.0 Aug 7, 2026 v0.7.0 Aug 4, 2026 Changes in this version + type Action string + const ActionCopy + const ActionCopyMode + const ActionCopyModeBottom + const ActionCopyModeDown + const ActionCopyModeExit + const ActionCopyModeHalfPageDown + const ActionCopyModeHalfPageUp + const ActionCopyModeLeft + const ActionCopyModeLineEnd + const ActionCopyModeLineStart + const ActionCopyModeNextMark + const ActionCopyModeNextMatch + const ActionCopyModePageDown + const ActionCopyModePageUp + const ActionCopyModePrevMark + const ActionCopyModePrevMatch + const ActionCopyModeRight + const ActionCopyModeSearchBack + const ActionCopyModeSearchFwd + const ActionCopyModeSelectChar + const ActionCopyModeSelectLine + const ActionCopyModeTop + const ActionCopyModeUp + const ActionCopyModeWordBack + const ActionCopyModeWordFwd + const ActionCopyModeYank + const ActionFind + const ActionFontDec + const ActionFontInc + const ActionFontReset + const ActionHints + const ActionHintsCopy + const ActionJumpFailure + const ActionNextMatch + const ActionNextPrompt + const ActionPaste + const ActionPrevMatch + const ActionPrevPrompt + const ActionScrollBottom + const ActionScrollPageDown + const ActionScrollPageUp + const ActionScrollTop + const ActionSelectOutput + const ActionToggleRegex + func ParseAction(name string) (Action, bool) + type ActivityKind int + const ActivityBell + const ActivityOutput + type BellMode int + const BellAudible + const BellAuto + const BellBoth + const BellNone + const BellVisual type Cfg + BellMode BellMode + DownloadDir string + KeyBindings KeyMap + MiddleClickPaste bool + MinimumContrast float64 + NotifyAfter time.Duration + OnActivity func(kind ActivityKind) + OnDownload func(name string, data []byte) + OnInput func(p []byte, kind InputKind) + RecordInput bool + RecordPath string + type InputKind int + const InputKey + const InputPaste + type KeyMap map[Action]gui.Shortcut type NamedTheme + func BundledThemes() []NamedTheme + type ReplayCfg struct + Controls bool + IdleLimit time.Duration + Loop bool + Path string + Speed float64 type ShortcutInfo + Action Action type Term + func NewReplay(w *gui.Window, cfg Cfg, rc ReplayCfg) (*Term, error) + func (t *Term) AvailableShortcuts() []ShortcutInfo + func (t *Term) FontSize() float32 + func (t *Term) KeyBindings() KeyMap + func (t *Term) Recording() bool + func (t *Term) ResetFontSize() + func (t *Term) RunAction(a Action, w *gui.Window) bool + func (t *Term) SendInput(p []byte, kind InputKind) + func (t *Term) SetBellMode(m BellMode) + func (t *Term) SetFontSize(size float32) + func (t *Term) SetKeyBindings(km KeyMap) + func (t *Term) SetMiddleClickPaste(on bool) + func (t *Term) SetMinimumContrast(ratio float64) + func (t *Term) SetNotifyAfter(d time.Duration) + func (t *Term) SetScrollbackRows(n int) + func (t *Term) SetScrollbarWidth(px float32) + func (t *Term) SetTextStyle(ts gui.TextStyle) + func (t *Term) Shortcuts() []ShortcutInfo + func (t *Term) StartRecording(path string) error + func (t *Term) StopRecording() error type Theme + func (t Theme) IsDark() bool + func (t Theme) SelectionBG() gui.Color v0.6.0 Jul 19, 2026 v0.5.0 Jul 18, 2026 Changes in this version type Term + func (t *Term) AdjustFontSize(delta float32) v0.4.0 Jun 29, 2026 Changes in this version + func ThemeMenuItems(themes []NamedTheme) []gui.MenuItemCfg type Cfg + Dir string + OnClickFocus func() + type ShortcutInfo struct + Keys string + Label string + func Shortcuts() []ShortcutInfo type Term + func (t *Term) FocusID() uint32 v0.3.1 Jun 23, 2026 Changes in this version + const DefaultColor + const MaxGridDim + const MaxScrollbackCap + type Cfg struct + AllowOSC52Write bool + Args []string + BellFlashDuration time.Duration + Command string + CursorBlink *bool + DisableGraphics bool + Env []string + NoWindowHandler bool + OnExit func() + OnNotify func(title, body string) + OnTitle func(string) + ScrollbackRows int + ScrollbarWidth float32 + TextStyle gui.TextStyle + Themes []NamedTheme + type Fixture struct + Cols int + InputB64 string + Name string + Rows int + WantCol int + WantCwd string + WantLines []string + WantRow int + WantTitle string + func CaptureFixture(name string, rows, cols int, input []byte) Fixture + type NamedTheme struct + Name string + Theme Theme + type Term struct + func New(w *gui.Window, cfg Cfg) (*Term, error) + func (t *Term) Alive() bool + func (t *Term) Close() error + func (t *Term) Cols() int + func (t *Term) Cwd() string + func (t *Term) HandleWindowEvent(e *gui.Event) + func (t *Term) PID() int + func (t *Term) Rows() int + func (t *Term) SetFocused(v bool) + func (t *Term) SetTheme(th Theme) + func (t *Term) Theme() Theme + func (t *Term) View(w *gui.Window) gui.View + func (t *Term) Write(p []byte) (int, error) + type Theme struct + ANSI [16]gui.Color + DefaultBG gui.Color + DefaultFG gui.Color + var DefaultTheme Theme + var GruvboxTheme Theme + var NordTheme Theme + var SolarizedDarkTheme Theme