166 |
166 |
167 while 1: |
167 while 1: |
168 key = self.scr.getch() |
168 key = self.scr.getch() |
169 if key == ord('q'): break |
169 if key == ord('q'): break |
170 elif key == ord(' '): self.box.query("+") # panic / resume |
170 elif key == ord(' '): self.box.query("+") # panic / resume |
|
171 elif key == 10: self.box.query("#") # remote start button press |
171 elif key == ord('1'): self.readName(0) |
172 elif key == ord('1'): self.readName(0) |
172 elif key == ord('2'): self.readName(1) |
173 elif key == ord('2'): self.readName(1) |
173 elif key == ord('3'): self.readName(2) |
174 elif key == ord('3'): self.readName(2) |
174 elif key == ord('4'): self.readName(3) |
175 elif key == ord('4'): self.readName(3) |
175 elif key == ord('5'): self.readName(4) |
176 elif key == ord('5'): self.readName(4) |