18 lines
401 B
Python
18 lines
401 B
Python
|
import curses
|
||
|
import time
|
||
|
|
||
|
def main(screen) :
|
||
|
pad = curses.newpad(curses.LINES, curses.COLS)
|
||
|
with open("ascii_art.txt", "r") as file:
|
||
|
title = file.read().split("\n")
|
||
|
|
||
|
width = len(title[0])
|
||
|
for i in range(len(title)) :
|
||
|
pad.addstr(4+i,curses.COLS//2-width//2-1,title[i])
|
||
|
pad.refresh(0,0,0,0,curses.LINES,curses.COLS)
|
||
|
time.sleep(1)
|
||
|
|
||
|
|
||
|
|
||
|
curses.wrapper(main)
|