curses_app.c half finished