fallout-term/fallout_functions.py
2015-05-26 22:28:59 -03:00

12 lines
279 B
Python

import curses
LETTER_PAUSE = 5
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)