From 4d2ec9a069a509be1ed713fd8d394f117bea3774 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Sep 2013 10:14:50 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/editor.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/editor.py b/src/editor.py index 9b31b84..25776a2 100644 --- a/src/editor.py +++ b/src/editor.py @@ -153,6 +153,7 @@ class TextArea(): self.old_stty = self.old_stty.decode('utf-8', 'error')[:-1] Popen('stty -icanon -echo -isig -ixon -ixoff'.split(' '), stdout = PIPE).communicate() + def close(self): ''' Restore the terminal to the state before `initialise` as invoked -- cgit v1.2.3-70-g09d2