Lines Matching refs:stdscr
133 def erase_menu(stdscr, menu_y): argument
135 stdscr.move(menu_y, 0)
136 stdscr.clrtoeol()
137 stdscr.move(menu_y+1, 0)
138 stdscr.clrtoeol()
140 def display_menu(stdscr, menu_y): argument
142 erase_menu(stdscr, menu_y)
143 stdscr.addstr(menu_y, 4,
145 stdscr.addstr(menu_y+1, 4,
148 def keyloop(stdscr): argument
150 stdscr.clear()
151 stdscr_y, stdscr_x = stdscr.getmaxyx()
153 display_menu(stdscr, menu_y)
156 subwin = stdscr.subwin(stdscr_y-3, stdscr_x, 0, 0)
165 stdscr.move(1+ypos, 1+xpos) # Move the cursor
166 c = stdscr.getch() # Get a keystroke
172 erase_menu(stdscr, menu_y)
173 stdscr.addstr(menu_y, 6, ' Hit any key to stop continuously '
175 stdscr.refresh()
178 stdscr.nodelay(1)
180 c = stdscr.getch()
183 stdscr.addstr(0,0, '/')
184 stdscr.refresh()
186 stdscr.addstr(0,0, '+')
187 stdscr.refresh()
189 stdscr.nodelay(0) # Disable nodelay mode
190 display_menu(stdscr, menu_y)
211 def main(stdscr): argument
212 keyloop(stdscr) # Enter the main loop