From 9b22d34dd987d820426a1c508dd383465134b523 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Sat, 8 Aug 2020 22:02:47 +0200 Subject: [PATCH] made drawing line a oneliner --- console-gui.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/console-gui.py b/console-gui.py index b55f81b..7551d29 100644 --- a/console-gui.py +++ b/console-gui.py @@ -36,9 +36,7 @@ def get_x_pos_center(text: str): def draw_menu(stdscr, projects: list, idx: int): menu_width = 20 # draw line - stdscr.attron(curses.color_pair(RED_BLACK)) - stdscr.vline(0, menu_width, curses.ACS_VLINE, stdscr.getmaxyx()[0] - 1) - stdscr.attroff(curses.color_pair(RED_BLACK)) + stdscr.vline(0, menu_width, curses.ACS_VLINE, stdscr.getmaxyx()[0] - 1, curses.color_pair(RED_BLACK)) # draw project title title = "PROJECTS"