61 def cleartop(self): |
61 def cleartop(self): |
62 self.scr.addstr(0,0, "%80s" % "Live monitor running, press keys to control or (q)uit") |
62 self.scr.addstr(0,0, "%80s" % "Live monitor running, press keys to control or (q)uit") |
63 self.scr.addstr(1,0, "%80s" % " ") |
63 self.scr.addstr(1,0, "%80s" % " ") |
64 |
64 |
65 def readName(self, slot): |
65 def readName(self, slot): |
|
66 self.scr.nodelay(0) # enable delay on readkey |
66 curses.echo() |
67 curses.echo() |
67 self.scr.addstr(0,0, "Enter Name for Controller %i [%s]:" % ( |
68 self.scr.addstr(0,0, "Enter Name for Controller %i [%s]:" % ( |
68 slot + 1, |
69 slot + 1, |
69 self.slot[slot]["name"]), |
70 self.slot[slot]["name"]), |
70 curses.color_pair(1)) |
71 curses.color_pair(1)) |