Fix for terminal-only Emacs.