After exit the terminal behaves weirdly, because the stdin is left in raw mode. Maybe use `atexit` to reset it? https://github.com/apinske/simpleos/blob/master/macos/virt/virt/main.swift