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
4a87d527
ROOT
/
termdash.go
Search
History
363 lines
|
ISO-8859-1
|
9 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
withEDS
(eds *event.DistributionSystem)
:
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
eds
:
*event.DistributionSystem
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
subscribers
()
handleError
(err error)
setClearNeeded
()
redraw
()
:
error
evRedraw
()
:
error
periodicRedraw
()
:
error
processEvents
(ctx context.Context)
start
(ctx context.Context)
:
error
stop
()
All occurrences
Please wait...
Page is in error, reload to recover