Ttibsi / rawterm

C++20 library for building TUI applications
MIT License
5 stars 3 forks source link

enter_alt_mode doesn't std::atexit to call exit_alt_mode #46

Closed Ttibsi closed 2 months ago

Ttibsi commented 5 months ago

Just like how we use std::atexit() on enable_raw_mode() here, we can do the same on enter_alt_mode() -- and then clean up the usage on the examples.

Could also clean up a few perror calls to throw exceptions as well where possible - some might need new exception types to be relevant, see grep -rn "throw" rawterm for where I'm already doing that