fallout-term/fallout_functions.py
2015-05-26 22:11:31 -03:00

12 lines
280 B
Python

import curses
LETTER_PAUSE = 20
def slowWrite(window, text, pause = LETTER_PAUSE):
"""
wrapper for curses.addstr() which writes the text slowely
"""
for i in xrange(len(text)):
window.addstr(text[i])
window.refresh()
curses.napms(pause)