aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/debug/cli
diff options
context:
space:
mode:
authorGravatar Shanqing Cai <cais@google.com>2017-03-20 10:09:17 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-20 11:27:57 -0700
commit17cc7906c64cd6e68ff150dac82fb3160e13a643 (patch)
treec533b3921344493c44319ce8909517cf3fcca222 /tensorflow/python/debug/cli
parent95cdab3c6a2006bdf6ae5b66588fa84fcbe05b0d (diff)
tfdbg CLI: in key mapping, replace some int key codes with available curses constants
Change: 150648734
Diffstat (limited to 'tensorflow/python/debug/cli')
-rw-r--r--tensorflow/python/debug/cli/curses_ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/debug/cli/curses_ui.py b/tensorflow/python/debug/cli/curses_ui.py
index 0bb24fae92..d5343eba4b 100644
--- a/tensorflow/python/debug/cli/curses_ui.py
+++ b/tensorflow/python/debug/cli/curses_ui.py
@@ -220,8 +220,8 @@ class CursesUI(base_ui.BaseUI):
CLI_CR_KEYS = [ord("\n"), ord("\r"), 343]
_KEY_MAP = {
- 127: 263, # Backspace
- 330: 4, # Delete
+ 127: curses.KEY_BACKSPACE, # Backspace
+ curses.KEY_DC: 4, # Delete
}
_FOREGROUND_COLORS = {