Fix for non-tty-based consoles