def __display_body_line(self, lineNum, station):
col = curses.color_pair(5)
# if the cursor is on the highligted chat/group
is_current = self.selection == self.showing
if lineNum + self.startPos == self.selection and is_current:
col = curses.color_pair(9)
self.body_win.hline(lineNum + 1, 1, ' ', self.bodyMaxX - 2, col)
elif lineNum + self.startPos == self.selection:
col = curses.color_pair(6)
self.body_win.hline(lineNum + 1, 1, ' ', self.bodyMaxX - 2, col)
elif lineNum + self.startPos == self.showing:
col = curses.color_pair(4)
self.body_win.hline(lineNum + 1, 1, ' ', self.bodyMaxX - 2, col)
line = "{0}. {1}".format(lineNum + self.startPos + 1, station)
self.body_win.addstr(lineNum + 1, 1, line, col)
评论列表
文章目录