Simple curses-based text editor