minimalistic text editor on ncurses