From 37ee2177aca5999ba422f6be6b01bdac24874f1d Mon Sep 17 00:00:00 2001 From: kvnxiao Date: Sun, 1 Mar 2020 14:43:46 -0500 Subject: [PATCH] Add missing Close() function to terminalapi.Terminal interface --- terminal/terminalapi/terminalapi.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminal/terminalapi/terminalapi.go b/terminal/terminalapi/terminalapi.go index d45935a..831abc1 100644 --- a/terminal/terminalapi/terminalapi.go +++ b/terminal/terminalapi/terminalapi.go @@ -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() }