mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-28 13:48:51 +08:00
Add missing Close() function to terminalapi.Terminal interface
This commit is contained in:
parent
6246aba1f7
commit
37ee2177ac
@ -49,4 +49,8 @@ type Terminal interface {
|
|||||||
// This call blocks until the next event or cancellation of the context.
|
// This call blocks until the next event or cancellation of the context.
|
||||||
// Returns nil when the context gets canceled.
|
// Returns nil when the context gets canceled.
|
||||||
Event(ctx context.Context) Event
|
Event(ctx context.Context) Event
|
||||||
|
|
||||||
|
// Close closes the underlying terminal implementation and should be called when
|
||||||
|
// the terminal isn't required anymore to return the screen to a sane state.
|
||||||
|
Close()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user