aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/printer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/printer.py b/bin/printer.py
index 1e3be8f..c7735f2 100644
--- a/bin/printer.py
+++ b/bin/printer.py
@@ -310,6 +310,10 @@ class Printer:
if cmd in [curses.KEY_RESIZE, self.ESCAPE_KEY]:
console.clear()
return EXIT
+ # Provide general code for back-space key, in case it's not
+ # correctly defined.
+ elif cmd in [127, curses.KEY_BACKSPACE]:
+ return curses.KEY_BACKSPACE
elif cmd == curses.KEY_UP:
access_history("up")
elif cmd == curses.KEY_DOWN: