Documentation
¶
Overview ¶
Package writer wraps the terminal, for simple new instance and write as a io.Writer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts func(*Terminal)
func WithOnFinish ¶
func WithOnFinish(f func()) Opts
WithOnFinish will set called f when terminal finished f can be called in anther goroutine, must can be thread-safe
type Terminal ¶
type Terminal struct { Screen tcell.Screen // the tcell instance // contains filtered or unexported fields }
func (*Terminal) Flush ¶
func (t *Terminal) Flush()
Flush will use buffered content to redraw terminal
func (*Terminal) ForceClearScreen ¶
func (t *Terminal) ForceClearScreen()
func (*Terminal) GetContent ¶
Click to show internal directories.
Click to hide internal directories.