Next: , Previous: , Up: Terminal Input   [Contents][Index]


58.8.1 Input Modes

Function: set-input-mode interrupt flow meta &optional quit-char console

This function sets the mode for reading keyboard input. If interrupt is non-null, then SXEmacs uses input interrupts. If it is nil, then it uses CBREAK mode. When SXEmacs communicates directly with X, it ignores this argument and uses interrupts if that is the way it knows how to communicate.

If flow is non-nil, then SXEmacs uses XON/XOFF (C-q, C-s) flow control for output to the terminal. This has no effect except in CBREAK mode. See Flow Control.

The default setting is system dependent. Some systems always use CBREAK mode regardless of what is specified.

The argument meta controls support for input character codes above 127. If meta is t, SXEmacs converts characters with the 8th bit set into Meta characters. If meta is nil, SXEmacs disregards the 8th bit; this is necessary when the terminal uses it as a parity bit. If meta is neither t nor nil, SXEmacs uses all 8 bits of input unchanged. This is good for terminals using European 8-bit character sets.

If quit-char is non-nil, it specifies the character to use for quitting. Normally this character is C-g. See Quitting.

The current-input-mode function returns the input mode settings SXEmacs is currently using.

Function: current-input-mode &optional console

This function returns current mode for reading keyboard input. It returns a list, corresponding to the arguments of set-input-mode, of the form (interrupt flow meta quit) in which:

interrupt

is non-nil when SXEmacs is using interrupt-driven input. If nil, SXEmacs is using CBREAK mode.

flow

is non-nil if SXEmacs uses XON/XOFF (C-q, C-s) flow control for output to the terminal. This value has no effect unless interrupt is non-nil.

meta

is t if SXEmacs treats the eighth bit of input characters as the meta bit; nil means SXEmacs clears the eighth bit of every input character; any other value means SXEmacs uses all eight bits as the basic character code.

quit

is the character SXEmacs currently uses for quitting, usually C-g.


Next: , Previous: , Up: Terminal Input   [Contents][Index]