annotate man/lispref/consoles-devices.texi @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 05472e90ae02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 @c -*-texinfo-*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @c This is part of the XEmacs Lisp Reference Manual.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @c Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @c See the file lispref.texi for copying conditions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 @setfilename ../../info/consoles-devices.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 @node Consoles and Devices, Positions, Frames, top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 @chapter Consoles and Devices
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 @cindex devices
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 @cindex consoles
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 A @dfn{console} is an object representing a single input connection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 to XEmacs, such as an X display or a TTY connection. It is possible
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 for XEmacs to have frames on multiple consoles at once (even on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 heterogeneous types -- you can simultaneously have a frame on an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 X display and a TTY connection). Normally, there is only one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 console in existence.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 A @dfn{device} is an object representing a single output device, such
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 as a particular screen on an X display. (Usually there is exactly one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 device per X console connection, but there may be more than one if you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 have a multi-headed X display. For TTY connections, there is always
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 exactly one device per console.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 Each device has one or more @dfn{frames} in which text can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 displayed. For X displays and the like, a frame corresponds to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 normal window-system concept of a window. Frames can overlap, be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 displayed at various locations within the display, be resized, etc. For
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 TTY, only one frame can be displayed at a time, and it occupies the
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
29 entire TTY display area.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
30 @ignore @c Not yet implemented
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
31 However, you can still define multiple frames
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 and switch between them. Their contents are entirely separate from each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 other. These sorts of frames resemble the ``virtual console''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 capability provided under Linux or the multiple screens provided by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 multiplexing program @samp{screen} under Unix.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
36 @end ignore
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 When you start up XEmacs, an initial console and device are created to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 receive input and display frames on. This will either be an X display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 or a TTY connection, depending on what mode you started XEmacs in (this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 is determined by the @samp{DISPLAY} environment variable, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 @samp{-nw}, @samp{-t} and @samp{-display} command-line options, etc.).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 You can connect to other X displays and TTY connections by creating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 new console objects, and to other X screens on an existing display by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 creating new device objects, as described below. Many functions (for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 example the frame-creation functions) take an optional device argument
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 specifying which device the function pertains to. If the argument is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 omitted, it defaults to the selected device (see below).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 @defun consolep object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 This returns non-@code{nil} if @var{object} is a console.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 @defun devicep object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 This returns non-@code{nil} if @var{object} is a device.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 * Basic Console Functions:: Functions for working with consoles.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 * Basic Device Functions:: Functions for working with devices.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 * Console Types and Device Classes::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 I/O and color characteristics.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 * Connecting to a Console or Device::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 * The Selected Console and Device::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 * Console and Device I/O:: Controlling input and output.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 @node Basic Console Functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 @section Basic Console Functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 @defun console-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 This function returns a list of all existing consoles.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 @defun console-device-list &optional console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 This function returns a list of all devices on @var{console}. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @var{console} is @code{nil}, the selected console will be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @node Basic Device Functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 @section Basic Device Functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 @defun device-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 This function returns a list of all existing devices.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 @defun device-or-frame-p object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 This function returns non-@code{nil} if @var{object} is a device or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 frame. This function is useful because devices and frames are similar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 in many respects and many functions can operate on either one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 @defun device-frame-list device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 This function returns a list of all frames on @var{device}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 @defun frame-device frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 This function returns the device that @var{frame} is on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 @node Console Types and Device Classes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 @section Console Types and Device Classes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 Every device is of a particular @dfn{type}, which describes how the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 connection to that device is made and how the device operates, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 a particular @dfn{class}, which describes other characteristics of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 the device (currently, the color capabilities of the device).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 The currently-defined device types are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 @item x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 A connection to an X display (such as @samp{willow:0}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @item tty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 A connection to a tty (such as @samp{/dev/ttyp3}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 @item stream
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 A stdio connection. This describes a device for which input and output
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 is only possible in a stream-like fashion, such as when XEmacs in running
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 in batch mode. The very first device created by XEmacs is a terminal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 device and is used to print out messages of various sorts (for example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 the help message when you use the @samp{-help} command-line option).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 The currently-defined device classes are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 @item color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 A color device.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 @item grayscale
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 A grayscale device (a device that can display multiple shades of gray,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 but no color).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 @item mono
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 A device that can only display two colors (e.g. black and white).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 @defun device-type device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 This function returns the type of @var{device}. This is a symbol whose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 name is one of the device types mentioned above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 @defun device-or-frame-type device-or-frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 This function returns the type of @var{device-or-frame}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 @defun device-class device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 This function returns the class (color behavior) of @var{device}. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 is a symbol whose name is one of the device classes mentioned above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 @defun valid-device-type-p device-type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 This function returns whether @var{device-type} (which should be a symbol)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 species a valid device type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 @defun valid-device-class-p device-class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 This function returns whether @var{device-class} (which should be a symbol)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 species a valid device class.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 @defvar terminal-device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 This variable holds the initial terminal device object, which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 represents XEmacs's stdout.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @node Connecting to a Console or Device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 @section Connecting to a Console or Device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 @defun make-device &optional type device-data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 This function creates a new device.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 The following two functions create devices of specific types and are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 written in terms of @code{make-device}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 @defun make-tty-device &optional tty terminal-type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 This function creates a new tty device on @var{tty}. This also creates
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 the tty's first frame. @var{tty} should be a string giving the name of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 a tty device file (e.g. @samp{/dev/ttyp3} under SunOS et al.), as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 returned by the @samp{tty} command issued from the Unix shell. A value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 of @code{nil} means use the stdin and stdout as passed to XEmacs from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 the shell. If @var{terminal-type} is non-@code{nil}, it should be a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 string specifying the type of the terminal attached to the specified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 tty. If it is @code{nil}, the terminal type will be inferred from the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 @samp{TERM} environment variable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 @defun make-x-device &optional display argv-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 This function creates a new device connected to @var{display}. Optional
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 argument @var{argv-list} is a list of strings describing command line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @defun delete-device device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 This function deletes @var{device}, permanently eliminating it from use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 This disconnects XEmacs's connection to the device.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 @defvar create-device-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 This variable, if non-@code{nil}, should contain a list of functions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 which are called when a device is created.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 @defvar delete-device-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 This variable, if non-@code{nil}, should contain a list of functions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 which are called when a device is deleted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @defun console-live-p object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 This function returns non-@code{nil} if @var{object} is a console that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 has not been deleted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 @defun device-live-p object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 This function returns non-@code{nil} if @var{object} is a device that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 has not been deleted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 @defun device-x-display device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 This function returns the X display which @var{device} is connected to,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 if @var{device} is an X device.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @node The Selected Console and Device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 @section The Selected Console and Device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 @defun select-console console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 This function selects the console @var{console}. Subsequent editing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 commands apply to its selected device, selected frame, and selected
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 window. The selection of @var{console} lasts until the next time the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 user does something to select a different console, or until the next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 time this function is called.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 @defun selected-console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 This function returns the console which is currently active.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 @defun select-device device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 This function selects the device @var{device}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @defun selected-device &optional console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 This function returns the device which is currently active. If optional
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 @var{console} is non-@code{nil}, this function returns the device that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 would be currently active if @var{console} were the selected console.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 @node Console and Device I/O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 @section Console and Device I/O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 @defun console-disable-input console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 This function disables input on console @var{console}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 @defun console-enable-input console
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 This function enables input on console @var{console}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 Each device has a @dfn{baud rate} value associated with it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 On most systems, changing this value will affect the amount of padding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 and other strategic decisions made during redisplay.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 @defun device-baud-rate &optional device
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 This function returns the output baud rate of @var{device}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 @defun set-device-baud-rate device rate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 This function sets the output baud rate of @var{device} to @var{rate}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 @end defun