Add missing Close() function to terminalapi.Terminal interface

This commit is contained in:
kvnxiao 2020-03-01 14:43:46 -05:00
parent 6246aba1f7
commit 37ee2177ac
1 changed files with 4 additions and 0 deletions

View File

@ -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()
}