Versions in this module Expand all Collapse all v0 v0.19.2 Dec 7, 2021 Changes in this version + func LogToFile(path string, prefix string) (*os.File, error) + type Cmd func() Msg + func Batch(cmds ...Cmd) Cmd + func Every(duration time.Duration, fn func(time.Time) Msg) Cmd + func ScrollDown(newLines []string, topBoundary, bottomBoundary int) Cmd + func ScrollUp(newLines []string, topBoundary, bottomBoundary int) Cmd + func Sequentially(cmds ...Cmd) Cmd + func SyncScrollArea(lines []string, topBoundary int, bottomBoundary int) Cmd + func Tick(d time.Duration, fn func(time.Time) Msg) Cmd + type Key struct + Alt bool + Runes []rune + Type KeyType + WinKeyEventRecord *coninput.KeyEventRecord + func (k Key) String() (str string) + type KeyMsg Key + func (k KeyMsg) String() (str string) + type KeyType int + const KeyBackspace + const KeyBreak + const KeyCtrlA + const KeyCtrlAt + const KeyCtrlB + const KeyCtrlBackslash + const KeyCtrlC + const KeyCtrlCaret + const KeyCtrlCloseBracket + const KeyCtrlD + const KeyCtrlE + const KeyCtrlF + const KeyCtrlG + const KeyCtrlH + const KeyCtrlI + const KeyCtrlJ + const KeyCtrlK + const KeyCtrlL + const KeyCtrlM + const KeyCtrlN + const KeyCtrlO + const KeyCtrlOpenBracket + const KeyCtrlP + const KeyCtrlQ + const KeyCtrlQuestionMark + const KeyCtrlR + const KeyCtrlS + const KeyCtrlT + const KeyCtrlU + const KeyCtrlUnderscore + const KeyCtrlV + const KeyCtrlW + const KeyCtrlX + const KeyCtrlY + const KeyCtrlZ + const KeyDelete + const KeyDown + const KeyEnd + const KeyEnter + const KeyEsc + const KeyEscape + const KeyHome + const KeyLeft + const KeyNull + const KeyPgDown + const KeyPgUp + const KeyRight + const KeyRunes + const KeyShiftTab + const KeySpace + const KeyTab + const KeyUp + func (k KeyType) String() (str string) + type Model interface + Init func() Cmd + Update func(Msg) (Model, Cmd) + View func() string + type MouseEvent struct + Alt bool + Ctrl bool + Type MouseEventType + WinMouseEventRecord *coninput.MouseEventRecord + X int + Y int + func (m MouseEvent) String() (s string) + type MouseEventType int + const MouseLeft + const MouseMiddle + const MouseMotion + const MouseRelease + const MouseRight + const MouseUnknown + const MouseWheelDown + const MouseWheelUp + type MouseMsg MouseEvent + type Msg interface + func ClearScrollArea() Msg + func DisableMouse() Msg + func EnableMouseAllMotion() Msg + func EnableMouseCellMotion() Msg + func EnterAltScreen() Msg + func ExitAltScreen() Msg + func HideCursor() Msg + func Quit() Msg + type Program struct + CatchPanics bool + func NewProgram(model Model, opts ...ProgramOption) *Program + func (p *Program) DisableMouseAllMotion() + func (p *Program) DisableMouseCellMotion() + func (p *Program) EnableMouseAllMotion() + func (p *Program) EnableMouseCellMotion() + func (p *Program) EnterAltScreen() + func (p *Program) ExitAltScreen() + func (p *Program) Send(msg Msg) + func (p *Program) Start() error + type ProgramOption func(*Program) + func WithANSICompressor() ProgramOption + func WithAltScreen() ProgramOption + func WithInput(input io.Reader) ProgramOption + func WithInputTTY() ProgramOption + func WithMouseAllMotion() ProgramOption + func WithMouseCellMotion() ProgramOption + func WithOutput(output io.Writer) ProgramOption + func WithoutCatchPanics() ProgramOption + func WithoutRenderer() ProgramOption + type WindowSizeMsg struct + Height int + Width int