Lines Matching refs:stdscr
144 def erase_menu(stdscr, menu_y): argument
146 stdscr.move(menu_y, 0)
147 stdscr.clrtoeol()
148 stdscr.move(menu_y + 1, 0)
149 stdscr.clrtoeol()
152 def display_menu(stdscr, menu_y): argument
154 erase_menu(stdscr, menu_y)
158 stdscr.attrset(curses.color_pair(1))
159 stdscr.addstr(menu_y, 4,
161 stdscr.addstr(menu_y + 1, 4,
163 stdscr.attrset(0)
166 def keyloop(stdscr): argument
168 stdscr.clear()
169 stdscr_y, stdscr_x = stdscr.getmaxyx()
171 display_menu(stdscr, menu_y)
187 subwin = stdscr.subwin(stdscr_y - 3, stdscr_x, 0, 0)
196 stdscr.move(1 + ypos, 1 + xpos) # Move the cursor
197 c = stdscr.getch() # Get a keystroke
203 erase_menu(stdscr, menu_y)
204 stdscr.addstr(menu_y, 6, ' Hit any key to stop continuously '
206 stdscr.refresh()
209 stdscr.nodelay(1)
211 c = stdscr.getch()
214 stdscr.addstr(0, 0, '/')
215 stdscr.refresh()
217 stdscr.addstr(0, 0, '+')
218 stdscr.refresh()
220 stdscr.nodelay(0) # Disable nodelay mode
221 display_menu(stdscr, menu_y)
258 def main(stdscr): argument
259 keyloop(stdscr) # Enter the main loop