start TestNotCurses
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user