fallout-term/fallout_functions.py
2015-05-31 18:54:43 -03:00

14 lines
302 B
Python

import curses
import time
import sys
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)