Skip to content

Commit c5d0387

Browse files
committed
Comment edits.
1 parent f00f046 commit c5d0387

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dbMon.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@
2424

2525
CPCB, CPGB, CPBR, CPYB, CPRB, CPBB, CPWW = [curses.color_pair(x) for x in range(1, 8)]
2626

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.
2831
Diamond = '◇'
2932
Horizontal, Vertical = '─', '│'
3033
CornerUL, CornerUR, CornerLL, CornerLR = '┌', '┐', '└', '┘'
3134
TeeD, TeeU, TeeR, TeeL = '┬', '┴', '├', '┤'
3235

36+
#TODO: Come up with a better way to set these based on the actual
37+
#layout encoded in dbStatus.
3338
HeaderLength = 6
3439
FooterLength = 1
3540
Width = 85
@@ -251,7 +256,7 @@ def display(S, inq):
251256
# Creates a shared queue, sets up status and display threads, and then waits for
252257
# keyboard events and writes them to the shared queue. Intercepts "q" to quit.
253258
#
254-
# It appears that getch() be called from the main processes.
259+
# It appears that getch() needs to be called from the main processes.
255260
def main(S):
256261
S.bkgdset(CPBB)
257262
S.clear()

0 commit comments

Comments
 (0)