8000 tfdbg CLI: in key mapping, replace some int key codes with available … · jbenjos/tensorflow@17cc790 · GitHub
Skip to content

Commit 17cc790

Browse files
caisqtensorflower-gardener
authored andcommitted
tfdbg CLI: in key mapping, replace some int key codes with available curses constants
Change: 150648734
1 parent 95cdab3 commit 17cc790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow/python/debug/cli/curses_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ class CursesUI(base_ui.BaseUI):
220220
CLI_CR_KEYS = [ord("\n"), ord("\r"), 343]
221221

222222
_KEY_MAP = {
223-
127: 263, # Backspace
224-
330: 4, # Delete
223+
127: curses.KEY_BACKSPACE, # Backspace
224+
curses.KEY_DC: 4, # Delete
225225
}
226226

227227
_FOREGROUND_COLORS = {

0 commit comments

Comments
 (0)
0