#include #include #include int main(int argc, char* argv[]) { std::unique_ptr editor; if (argc > 1) editor = std::make_unique(argv[1]); else editor = std::make_unique(); groove::ncurses::ncurses curses; curses.init(); curses.flush(); while(editor->mode() != groove::Mode::QUIT) { editor->render(); int input = getch(); // Blocking until input editor->input(input); } curses.quit(); return 0; }