Versions in this module Expand all Collapse all v1 v1.0.260758 Jul 30, 2026 Changes in this version + type AppSurface struct + func NewAppSurface(id, title string, app uiapp.App, cols, rows int) (*AppSurface, error) + func (s *AppSurface) BindHost(host uiapp.Host, onTitle TitleSink, onClose CloseSink) error + func (s *AppSurface) Close() error + func (s *AppSurface) HandleInput(ev InputEvent) error + func (s *AppSurface) ID() string + func (s *AppSurface) Kind() string + func (s *AppSurface) MouseMode() int + func (s *AppSurface) NotifyFocus(focused bool) + func (s *AppSurface) ProduceDiff() cell.Diff + func (s *AppSurface) Resize(cols, rows int) + func (s *AppSurface) Size() (int, int) + func (s *AppSurface) Snapshot() []cell.Cell + func (s *AppSurface) Title() string + type BellProvider interface + TakeBell func() bool + type CloseSink func() + type CursorProvider interface + Cursor func() (x, y int, visible bool) + type ExtAppSurface struct + func NewExtApp(id, command string, args []string, cols, rows int) (*ExtAppSurface, error) + func (s *ExtAppSurface) BindHost(host uiapp.Host) error + func (s *ExtAppSurface) Close() error + func (s *ExtAppSurface) HandleInput(ev InputEvent) error + func (s *ExtAppSurface) ID() string + func (s *ExtAppSurface) Kind() string + func (s *ExtAppSurface) MouseMode() int + func (s *ExtAppSurface) NotifyFocus(focused bool) + func (s *ExtAppSurface) ProduceDiff() cell.Diff + func (s *ExtAppSurface) Resize(cols, rows int) + func (s *ExtAppSurface) Size() (int, int) + func (s *ExtAppSurface) Snapshot() []cell.Cell + func (s *ExtAppSurface) Title() string + type GfxSurface struct + func NewGfxSurface(id, title, path string, cols, rows int) (*GfxSurface, error) + func NewGfxSurfaceFromImage(id, title string, img image.Image, cols, rows int) *GfxSurface + func (s *GfxSurface) Close() error + func (s *GfxSurface) HandleInput(ev InputEvent) error + func (s *GfxSurface) ID() string + func (s *GfxSurface) Kind() string + func (s *GfxSurface) ProduceDiff() cell.Diff + func (s *GfxSurface) Resize(cols, rows int) + func (s *GfxSurface) Size() (int, int) + func (s *GfxSurface) Snapshot() []cell.Cell + func (s *GfxSurface) Title() string + type InputEvent struct + Action string + Alt bool + Button int + Bytes []byte + Ctrl bool + Key string + Kind string + Rune rune + Shift bool + X int + Y int + type MouseModeProvider interface + MouseMode func() int + type PtyOpts struct + Args []string + Cols int + Command string + Rows int + Scrollback int + Title string + type PtySurface struct + func NewPtySurface(id, shell string, cols, rows, scrollback int) (*PtySurface, error) + func NewPtySurfaceOpts(id string, opts PtyOpts) (*PtySurface, error) + func (s *PtySurface) Close() error + func (s *PtySurface) Cursor() (x, y int, visible bool) + func (s *PtySurface) HandleInput(ev InputEvent) error + func (s *PtySurface) HasScrollback() bool + func (s *PtySurface) ID() string + func (s *PtySurface) Kind() string + func (s *PtySurface) MouseMode() int + func (s *PtySurface) ProduceDiff() cell.Diff + func (s *PtySurface) Resize(cols, rows int) + func (s *PtySurface) ScrollUIState() (offset, content, viewport int) + func (s *PtySurface) SearchScrollback(query string, towardOlder bool) (found bool, matches int) + func (s *PtySurface) SetScrollUIOffset(offset int) + func (s *PtySurface) Size() (int, int) + func (s *PtySurface) Snapshot() []cell.Cell + func (s *PtySurface) TakeBell() bool + func (s *PtySurface) Title() string + type ScrollbackProvider interface + HasScrollback func() bool + ScrollUIState func() (offset, content, viewport int) + SetScrollUIOffset func(offset int) + type ScrollbackSearchProvider interface + SearchScrollback func(query string, towardOlder bool) (found bool, matches int) + type Surface interface + Close func() error + HandleInput func(InputEvent) error + ID func() string + Kind func() string + ProduceDiff func() cell.Diff + Resize func(cols, rows int) + Size func() (cols, rows int) + Snapshot func() []cell.Cell + Title func() string + type TitleSink func(title string)