You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2014/10/29 00:58:47 UTC

[02/24] git commit: PHOENIX-1373: Ctrl-C out of sqlline causes terminal to be useless

PHOENIX-1373: Ctrl-C out of sqlline causes terminal to be useless


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e8a0355a
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e8a0355a
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e8a0355a

Branch: refs/heads/4.2
Commit: e8a0355a4734beaf69998754f617172974b46670
Parents: 6a28b7d
Author: Jeffrey Zhong <je...@apache.org>
Authored: Thu Oct 23 17:34:43 2014 -0700
Committer: Jeffrey Zhong <je...@apache.org>
Committed: Thu Oct 23 17:34:43 2014 -0700

----------------------------------------------------------------------
 bin/sqlline.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e8a0355a/bin/sqlline.py
----------------------------------------------------------------------
diff --git a/bin/sqlline.py b/bin/sqlline.py
index d41c2e7..f48e527 100755
--- a/bin/sqlline.py
+++ b/bin/sqlline.py
@@ -31,6 +31,8 @@ def kill_child():
     if childProc is not None:
         childProc.terminate()
         childProc.kill()
+        if os.name != 'nt':
+            os.system("reset")
 atexit.register(kill_child)
 
 phoenix_utils.setPath()