You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
471 B
25 lines
471 B
#include <iostream>
|
|
#include <ncurses/ncurses.hpp>
|
|
#include <Editor.hpp>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
groove::Editor editor;
|
|
if (argc > 1)
|
|
editor = groove::Editor(argv[1]);
|
|
else
|
|
editor = groove::Editor();
|
|
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;
|
|
} |