]> code.delx.au - offlineimap/blobdiff - offlineimap/ui/Curses.py
Merge commit 'origin' into v7
[offlineimap] / offlineimap / ui / Curses.py
index 4768ea0db502ff23a805b539917f5b041923e43d..6c24ab317e4ee67ffa9fb14a7a4c225d9ffdd925 100644 (file)
@@ -375,7 +375,7 @@ class Blinkenlights(BlinkenBase, UIBase):
             sys.exit(0)
 
     def keypress(s, key):
-        if key > 255:
+        if key < 1 or key > 255:
             return
         
         if chr(key) == 'q':
@@ -511,6 +511,8 @@ class Blinkenlights(BlinkenBase, UIBase):
                 return
             if color:
                 s.gettf().setcolor(color)
+            elif s.gettf().getcolor() == 'black':
+                s.gettf().setcolor('gray')
             s._addline(msg, s.gettf().getcolorpair())
             s.logwindow.refresh()
         finally: