1 # Display card output and retreive input
6 def disp_card(stdscr, stack, idx, side):
8 stdscr.addstr(str(stack[idx][side]))
10 def get_key(stdscr, stack):
17 if key == "q" or key == os.linesep:
21 disp_card(stdscr, stack, idx, 0)
25 disp_card(stdscr, stack, idx, 0)
31 disp_card(stdscr, stack, idx, side)