1 ;;; console.el --- miscellaneous console functions not written in C
3 ;; Copyright (C) 1994-5, 1997 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 1996 Ben Wing
6 ;; Maintainer: SXEmacs Development Team
7 ;; Keywords: internal, dumped
9 ;; This file is part of SXEmacs.
11 ;; SXEmacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; SXEmacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
24 ;;; Synched up with: Not in FSF.
28 ;; This file is dumped with SXEmacs.
32 (defun quit-char (&optional console)
33 "Return the character that causes a QUIT to happen.
34 This is normally C-g. Optional arg CONSOLE specifies the console
35 that the information is returned for; nil means the current console."
36 (nth 3 (current-input-mode console)))
38 (defun resume-pid-console (pid)
39 "Resume the consoles with a controlling process of PID."
41 (if (and (eq (console-type c) 'tty)
42 (eql pid (console-tty-controlling-process c)))
49 ;;; console.el ends here