Function: set-quit-char
set-quit-char is a function defined in keyboard.c.
Signature
(set-quit-char QUIT)
Documentation
Specify character used for quitting.
QUIT must be an ASCII character.
This function only has an effect on the controlling tty of the Emacs process.
See also current-input-mode.
Source Code
// Defined in /usr/src/emacs/src/keyboard.c
{
struct terminal *t = get_named_terminal (dev_tty);
struct tty_display_info *tty;
if (!t)
return Qnil;
tty = t->display_info.tty;
if (NILP (quit) || !FIXNUMP (quit) || XFIXNUM (quit) < 0 || XFIXNUM (quit) > 0400)
error ("QUIT must be an ASCII character");
#ifndef DOS_NT
/* this causes startup screen to be restored and messes with the mouse */
reset_sys_modes (tty);
#endif
/* Don't let this value be out of range. */
quit_char = XFIXNUM (quit) & (tty->meta_key == 0 ? 0177 : 0377);
#ifndef DOS_NT
init_sys_modes (tty);
#endif
return Qnil;
}