summaryrefslogtreecommitdiffstats
path: root/cholerab
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-07-24 05:06:59 +0200
committermakefu <github@syntax-fehler.de>2011-07-24 05:08:18 +0200
commit55198bc5ecc2e46907ad67a62f5ccae5c662d0c7 (patch)
treee3cecd11b8d03c92beec70bc2abb828f8f35d1bf /cholerab
parent1a0324c732577fa703c006f8188fc424c17f66e0 (diff)
fixed backspace bug on krebs... hopefully?
Diffstat (limited to 'cholerab')
-rw-r--r--cholerab/cholerab-live/view.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cholerab/cholerab-live/view.py b/cholerab/cholerab-live/view.py
index 01b53b8c..6a75f655 100644
--- a/cholerab/cholerab-live/view.py
+++ b/cholerab/cholerab-live/view.py
@@ -40,12 +40,13 @@ class CursesView(threading.Thread):
while self.running:
c = self.scr.getch() #get_char(self.scr)
#TODO UTF8 here, get_wch not yet implemented
+ log.debug("Pressed : %d" % c)
if c == KEY_LEFT : self.x -=1
elif c == KEY_RIGHT : self.x +=1
elif c == KEY_UP : self.y -=1
elif c == KEY_DOWN : self.y +=1
elif c == ord('q') : self.stop()
- elif c == 127:
+ elif c == 127 or c == KEY_BACKSPACE:
log.info('backspace pressed')
self.x -=1;
self.x,self.y = try_move(self.x,self.y)