76 self.cleartop() |
76 self.cleartop() |
77 self.scr.refresh() |
77 self.scr.refresh() |
78 curses.noecho() |
78 curses.noecho() |
79 self.scr.nodelay(1) # disable delay on readkey |
79 self.scr.nodelay(1) # disable delay on readkey |
80 |
80 |
|
81 def monitor_init(self): |
|
82 """ |
|
83 Send initializing commands for live monitoring |
|
84 """ |
|
85 self.box.com.query("F1\n") # set fuel logic enabled |
|
86 self.box.com.query("*1\n") # set live fuel info |
|
87 |
81 def monitor(self): |
88 def monitor(self): |
82 """ |
89 """ |
83 Live Monitor on the console |
90 Live Monitor on the console |
84 Keyboard loop to control it??? |
91 Keyboard loop to control it??? |
85 """ |
92 """ |
|
93 self.monitor_init() |
86 self.scr = curses.initscr() |
94 self.scr = curses.initscr() |
87 curses.start_color() |
95 curses.start_color() |
88 curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK) # standard text |
96 curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK) # standard text |
89 curses.init_pair(2, curses.COLOR_WHITE, curses.COLOR_BLUE) # label |
97 curses.init_pair(2, curses.COLOR_WHITE, curses.COLOR_BLUE) # label |
90 curses.noecho() # disable key echo |
98 curses.noecho() # disable key echo |