I used the curses library in Python to divide the screen into two part, the first half to print a set of strings and the second half to get the user input by using getstr() , but when the user enters the ipnut curses interrupt the entry and clear the user's entries
def main(stdscr):
curses.curs_set(0)
stdscr.nodelay(1)
stdscr.timeout(100)
i = 0
while 1 :
i = i+1
stdscr.addstr(0,0,"frame"+str(i))
curses.echo()
user_input = stdscr.getstr(5,0)
stdscr.addstr(7,0,user_input)
curses.wrapper(main)