Skip to content

Instantly share code, notes, and snippets.

@Artanis
Created December 21, 2011 22:43
Show Gist options
  • Save Artanis/1508051 to your computer and use it in GitHub Desktop.
Save Artanis/1508051 to your computer and use it in GitHub Desktop.
curses addstr bytestr
# System Modules
import curses
import time
# External Modules
# Local Modules
def test(stdscr):
stdscr.addstr(b'Hello Curses!')
stdscr.refresh()
time.sleep(2)
def main():
curses.wrapper(test)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment