Skip to content

Instantly share code, notes, and snippets.

@nemumu
Created June 18, 2014 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemumu/66f20437f059058611cd to your computer and use it in GitHub Desktop.
Save nemumu/66f20437f059058611cd to your computer and use it in GitHub Desktop.
初めて書いたPy-cursesのプログラム
import curses
import time
stdscr = curses.initscr()
pad = curses.newpad(100, 100)
for y in range(0, 100):
for x in range(0, 100):
try: pad.addch(y,x, "a" )
except curses.error: pass
pad.refresh( 0,0, 5,5, 20,75)
time.sleep(3)
curses.endwin()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment