def gmode(self):
"""
Types automatically
"""
try:
fileptr = 0
while (fileptr + self.n) < len(self.file):
text = self.get_text(fileptr)
fileptr += self.n
self.stdscr.addstr(text)
self.stdscr.refresh()
sleep(0.1)
curses.endwin()
except KeyboardInterrupt:
curses.endwin()
exit()
评论列表
文章目录