Function: frame-terminal-default-bg-mode

frame-terminal-default-bg-mode is a byte-compiled function defined in frame.el.gz.

Signature

(frame-terminal-default-bg-mode FRAME)

Documentation

Return the default background mode of FRAME.

This checks the frame-background-mode variable, the X resource named "backgroundMode" (if FRAME is an X frame), and finally the background-mode terminal parameter.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frame-terminal-default-bg-mode (frame)
  "Return the default background mode of FRAME.
This checks the `frame-background-mode' variable, the X resource
named \"backgroundMode\" (if FRAME is an X frame), and finally
the `background-mode' terminal parameter."
  (or frame-background-mode
      (let ((bg-resource
	     (and (window-system frame)
		  (x-get-resource "backgroundMode" "BackgroundMode"))))
	(if bg-resource
	    (intern (downcase bg-resource))))
      (terminal-parameter frame 'background-mode)))