changeset 101257:29b0330cf9d3

(Terminal Parameters): Document `terminal-parameters', `terminal-parameter', and `set-terminal-parameter'.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 17 Jan 2009 18:43:24 +0000
parents f77a0ad64329
children d9c57f926a95
files doc/lispref/frames.texi
diffstat 1 files changed, 33 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/frames.texi	Sat Jan 17 17:29:25 2009 +0000
+++ b/doc/lispref/frames.texi	Sat Jan 17 18:43:24 2009 +0000
@@ -1053,18 +1053,49 @@
 @section Terminal Parameters
 @cindex terminal parameters
 
-  This subsection describes how to read and change the parameter
-values of a terminal.
+  Each terminal has a list of associated parameters.  These
+@dfn{terminal parameters} are mostly a convenient way of storage for
+terminal-local variables, but some terminal parameters have a special
+meaning.
+
+  This section describes functions to read and change the parameter values
+of a terminal.  They all accept as their argument either a terminal or
+a frame; the latter means use that frame's terminal.  An argument of
+@code{nil} means the selected frame's terminal.
 
 @defun terminal-parameters &optional terminal
+This function returns an alist listing all the parameters of
+@var{terminal} and their values.
 @end defun
 
 @defun terminal-parameter terminal parameter
+This function returns the value of the parameter @var{parameter} (a
+symbol) of @var{terminal}.  If @var{terminal} has no setting for
+@var{parameter}, this function returns @code{nil}.
 @end defun
 
 @defun set-terminal-parameter terminal parameter value
+This function sets the parameter @var{parm} of @var{terminal} to the
+specified @var{value}, and returns the previous value of that
+parameter.
 @end defun
 
+Here's a list of a few terminal parameters that have a special
+meaning:
+
+@table @code
+@item background-mode
+The classification of the terminal's background color, either
+@code{light} or @code{dark}.
+@item normal-erase-is-backspace
+Value is either 1 or 0, depending on whether
+@code{normal-erase-is-backspace-mode} is turned on or off on this
+terminal.  @xref{DEL Does Not Delete,,, emacs, The Emacs Manual}.
+@item terminal-initted
+After the terminal is initialized, this is set to the
+terminal-specific initialization function.
+@end table
+
 @node Frame Titles
 @section Frame Titles
 @cindex frame title
@@ -1440,16 +1471,6 @@
 Emacs does provide events that you can use to keep track of such
 changes.  @xref{Misc Events}.
 
-@defun suspend-frame
-@end defun
-
-@c FIXME: xref to suspend-emacs, and xref there.
-@defun suspend-tty &optional tty
-@end defun
-
-@defun resume-tty &optional tty
-@end defun
-
 @node Raising and Lowering
 @section Raising and Lowering Frames