On macOS, the console does not respond to SIGWINCH signals, which leads to a poor terminal experience. It appears that the sigwinch_handler is only registered on Linux 😢
#[cfg(target_os = "linux")]
register_sigwinch_handler(console.lock().unwrap().get_sigwinch_fd())
.map_err(RegisterFsSigwinch)?;