#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++20support (gcc 13.1.1,clang 16.0.6,msvc 19.36.32535or later versions) cmake3.9 or later
win32unix
For each supported platform there exists a configure and build script, run them in this order.