fallout-term/fallout_functions.py

13 lines
280 B
Python
Raw Normal View History

2015-05-27 01:11:31 +00:00
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)