managing Test_Based screen with curses