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 01:01:57 UTC

[02/15] 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/f8db1d55
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f8db1d55
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f8db1d55

Branch: refs/heads/3.2
Commit: f8db1d55108a26ecd8a85e6431d81955f6c66c93
Parents: f1cbcc4
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:36:55 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f8db1d55/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()