added unix backspace

This commit is contained in:
Jake Funke 2018-03-11 15:10:07 -07:00
parent eed6e61199
commit f716b4ab96
1 changed files with 2 additions and 1 deletions

View File

@ -549,7 +549,8 @@ class CursedMenu(object):
user_input = 0
while user_input != 10:
user_input = self.screen.getch()
if user_input == 127:
# osx and unix backspace chars...
if user_input == 127 or user_input == 263:
if len(user_string) > 0:
user_string = user_string[:-1]
self.screen.addstr(15, 3, " " * (self.maxx-2) )