Configurable curses text editor class