Created
June 18, 2014 02:02
-
-
Save nemumu/66f20437f059058611cd to your computer and use it in GitHub Desktop.
初めて書いたPy-cursesのプログラム
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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