mirror of https://github.com/mum4k/termdash.git
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.
|
||||
// Returns nil when the context gets canceled.
|
||||
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…
Reference in New Issue