Versions in this module Expand all Collapse all v0 v0.0.2 Sep 5, 2024 v0.0.1 Sep 5, 2024 Changes in this version + func CliCommandRestore() string + func CliCommandSave() string + func CliCommandStartOfLine() string + func CliCommandUp(count int) string + func DisableStdinEcho() error + func EnableStdinEcho() error + func StdinEchoEnabled() bool + type InputLineCounter struct + Reader *os.File + Stream *os.File + func NewInputLineCounter(stream *os.File) *InputLineCounter + func (lineCounter *InputLineCounter) Count() int + func (lineCounter *InputLineCounter) Stop() + type LineCounter struct + func NewLineCounter() *LineCounter + func (lineCounter *LineCounter) Count() int + func (lineCounter *LineCounter) Stop() + type OutputLineCounter struct + Stream *os.File + Writer *os.File + func NewOuputLineCounter(stream *os.File) *OutputLineCounter + func (lineCounter *OutputLineCounter) Count() int + func (lineCounter *OutputLineCounter) Stop() + type Position struct + X int + Y int + func GetCursorPos() (*Position, error) + type TermWatcher struct + Height int + HeightChan chan int + StdinEcho bool + StdinEchoChan chan bool + Width int + WidthChan chan int + func NewTermWatcher() *TermWatcher + func (termOptions *TermWatcher) Start() + func (termOptions *TermWatcher) Stop()