Next: , Previous: , Up: Consoles and Devices   [Contents][Index]


40.4 Connecting to a Console or Device

Function: make-device type connection &optional props

This function creates a new device.

The following two functions create devices of specific types and are written in terms of make-device.

Function: make-tty-device &optional tty terminal-type

This function creates a new tty device on tty. This also creates the tty’s first frame. tty should be a string giving the name of a tty device file (e.g. ‘/dev/ttyp3’ under SunOS et al.), as returned by the ‘tty’ command issued from the Unix shell. A value of nil means use the stdin and stdout as passed to SXEmacs from the shell. If terminal-type is non-nil, it should be a string specifying the type of the terminal attached to the specified tty. If it is nil, the terminal type will be inferred from the ‘TERM’ environment variable.

Function: make-x-device &optional display argv-list

This function creates a new device connected to display. Optional argument argv-list is a list of strings describing command line options.

Function: delete-device device &optional force

This function deletes device, permanently eliminating it from use. This disconnects SXEmacs’s connection to the device.

Variable: create-device-hook

This variable, if non-nil, should contain a list of functions, which are called when a device is created.

Variable: delete-device-hook

This variable, if non-nil, should contain a list of functions, which are called when a device is deleted.

Function: console-live-p object

This function returns non-nil if object is a console that has not been deleted.

Function: device-live-p object

This function returns non-nil if object is a device that has not been deleted.

Function: device-x-display device

This function returns the X display which device is connected to, if device is an X device.


Next: , Previous: , Up: Consoles and Devices   [Contents][Index]