start TestNotCurses

This commit is contained in:
2025-04-13 14:21:26 -05:00
parent 640c19c439
commit afed109c74
2 changed files with 14 additions and 1 deletions

View File

@@ -5,13 +5,24 @@ TestNotCurses::TestNotCurses(Archimedes::App* a, void* h) : Archimedes::Module(a
}
TestNotCurses::~TestNotCurses() {
notcurses_stop(ncInstance);
}
void TestNotCurses::onLoad() {
setlocale(LC_ALL, "");
notcurses_options opts;
ncInstance = notcurses_init(&opts, NULL);
if(!ncInstance) {
app->stopModule(getName());
return;
}
}
void TestNotCurses::run() {
notcurses_render(ncInstance);
}