|
24 | 24 |
|
25 | 25 | CPCB, CPGB, CPBR, CPYB, CPRB, CPBB, CPWW = [curses.color_pair(x) for x in range(1, 8)] |
26 | 26 |
|
27 | | -# These are unicode. The hope is that they will be supported on almost all platforms. |
| 27 | +# While we could use the curses.ACS_... symbols, that's a bit messy, |
| 28 | +# in part because they don't seem to work in a natural way with |
| 29 | +# addstr() (just addch()). These are unicode symbols. The hope is that |
| 30 | +# they will be supported on almost all platforms. |
28 | 31 | Diamond = '◇' |
29 | 32 | Horizontal, Vertical = '─', '│' |
30 | 33 | CornerUL, CornerUR, CornerLL, CornerLR = '┌', '┐', '└', '┘' |
31 | 34 | TeeD, TeeU, TeeR, TeeL = '┬', '┴', '├', '┤' |
32 | 35 |
|
| 36 | +#TODO: Come up with a better way to set these based on the actual |
| 37 | +#layout encoded in dbStatus. |
33 | 38 | HeaderLength = 6 |
34 | 39 | FooterLength = 1 |
35 | 40 | Width = 85 |
@@ -251,7 +256,7 @@ def display(S, inq): |
251 | 256 | # Creates a shared queue, sets up status and display threads, and then waits for |
252 | 257 | # keyboard events and writes them to the shared queue. Intercepts "q" to quit. |
253 | 258 | # |
254 | | -# It appears that getch() be called from the main processes. |
| 259 | +# It appears that getch() needs to be called from the main processes. |
255 | 260 | def main(S): |
256 | 261 | S.bkgdset(CPBB) |
257 | 262 | S.clear() |
|
0 commit comments