#include <console.hh>
console instance{};
bool key(const char key) {
if(key == 'q') return false;
return instance.refresh();
}
bool resize([[maybe_unused]] const console::coord coords) {
return instance.refresh();
}
int main() {
instance.add_key_callback(key);
instance.add_resize_callback(resize);
instance.main_loop();
}
- A C++ compiler with
c++20
support (gcc 13.1.1
,clang 16.0.6
,msvc 19.36.32535
or later versions) cmake
3.9 or later
win32
unix
For each supported platform there exists a configure
and build
script, run them in this order.