Variable: initial-window-system

initial-window-system is a variable defined in dispnew.c.

Value

nil

Documentation

Name of the window system that Emacs uses for the first frame.

The value is a symbol:
 nil for a termcap frame (a character-only terminal),
 x for an Emacs frame that is really an X window,
 w32 for an Emacs frame that is a window on MS-Windows display,
 ns for an Emacs frame on a GNUstep or Macintosh Cocoa display,
 pc for a direct-write MS-DOS frame.
 pgtk for an Emacs frame using pure GTK facilities.
 haiku for an Emacs frame running in Haiku.

Use of this variable as a boolean is deprecated. Instead, use display-graphic-p or any of the other display-*-p predicates which report frame's specific UI-related capabilities.

View in manual

Probably introduced at or before Emacs version 23.1.

Source Code

// Defined in /usr/src/emacs/src/dispnew.c
  DEFVAR_LISP ("initial-window-system", Vinitial_window_system,
	       doc: /* Name of the window system that Emacs uses for the first frame.
The value is a symbol:
 nil for a termcap frame (a character-only terminal),
 `x' for an Emacs frame that is really an X window,
 `w32' for an Emacs frame that is a window on MS-Windows display,
 `ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
 `pc' for a direct-write MS-DOS frame.
 `pgtk' for an Emacs frame using pure GTK facilities.
 `haiku' for an Emacs frame running in Haiku.

Use of this variable as a boolean is deprecated.  Instead,
use `display-graphic-p' or any of the other `display-*-p'
predicates which report frame's specific UI-related capabilities.  */);