How to detect that emacs is in terminal-mode?
The window-system variable tells Lisp programs what window system Emacs is running under. The possible values are x Emacs is displaying the frame using X. w32 Emacs is displaying the frame using native MS-Windows GUI. ns Emacs is displaying the frame using the Nextstep interface (used on GNUstep and Mac OS X). pc Emacs is … Read more