The #if defined(_WIN32) #elif defined(__linux__) pattern doesn't account for macOS
Even if I change #elif defined(__linux__) to #else for get_terminal_size and the includes, the approach of using ioctl to get the terminal dimensions doesn't seem to work on macOS
#if defined(_WIN32) #elif defined(__linux__)
pattern doesn't account for macOS#elif defined(__linux__)
to#else
forget_terminal_size
and the includes, the approach of usingioctl
to get the terminal dimensions doesn't seem to work on macOSAny reason not to use ncurses?