def draw_status_row(self, window, status, offset, highlight=False):
width = window.getmaxyx()[1]
color = Color.blue() if highlight else 0
date, time = status['created_at']
window.addstr(offset + 2, 2, date, color)
window.addstr(offset + 3, 2, time, color)
window.addstr(offset + 2, 15, status['account']['acct'], color)
window.addstr(offset + 3, 15, status['account']['display_name'], color)
window.addstr(offset + 4, 1, '?' * (width - 2))
window.refresh(0, 0, 2, 0, curses.LINES - 4, self.left_width)
评论列表
文章目录