crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
v0.4.0
ROOT
/
termdash.go
Search
History
344 lines
|
ISO-8859-1
|
8 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
DefaultRedrawInterval
Option
set
(td *termdash)
option
set
(td *termdash)
RedrawInterval
(t time.Duration)
:
Option
ErrorHandler
(f func(error))
:
Option
KeyboardSubscriber
(f func(*terminalapi.Keyboard))
:
Option
MouseSubscriber
(f func(*terminalapi.Mouse))
:
Option
Run
(ctx context.Context, t terminalapi.Terminal, c *container.Container, opts ...Option)
:
error
Controller
td
:
*termdash
cancel
:
context.CancelFunc
NewController
(t terminalapi.Terminal, c *container.Container, opts ...Option)
:
(*Controller, error)
termdash
term
:
terminalapi.Terminal
container
:
*container.Container
closeCh
:
chan struct{}
exitCh
:
chan struct{}
clearNeeded
:
bool
mu
:
sync.Mutex
redrawInterval
:
time.Duration
errorHandler
:
func(error)
mouseSubscriber
:
func(*terminalapi.Mouse)
keyboardSubscriber
:
func(*terminalapi.Keyboard)
newTermdash
(t terminalapi.Terminal, c *container.Container, opts ...Option)
:
*termdash
*Controller
Redraw
()
:
error
Close
()
*termdash
handleError
(err error)
setClearNeeded
()
redraw
()
:
error
keyEvRedraw
(ev *terminalapi.Keyboard)
:
error
mouseEvRedraw
(ev *terminalapi.Mouse)
:
error
periodicRedraw
()
:
error
processEvents
(ctx context.Context)
start
(ctx context.Context)
:
error
stop
()
All occurrences
Please wait...
Page is in error, reload to recover