creating curses interface