Advertisement
Guest User

python3.4 curses module: bug reappearance code

a guest
Mar 27th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # python3.4 curses module: bug reappearance code
  2. import curses
  3.  
  4. def callback(stdscr, *args, **kwargs):
  5.     for y in range(10):
  6.         stdscr.addch(y, 0, b'y')
  7.     for x in range(10):
  8.         stdscr.addch(0, x, b'x')
  9.     stdscr.refresh()
  10.     while 1:
  11.         curses.napms(100)
  12.  
  13. if __name__ == '__main__':
  14.     curses.wrapper(callback)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement