started to implement ncurses
io ops rewritten according to ncurses