Mercurial > hg > xemacs-beta
comparison lisp/prim/console.el @ 30:ec9a17fef872 r19-15b98
Import from CVS: tag r19-15b98
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:52:29 +0200 |
parents | 0293115a14e9 |
children | 131b0175ea99 |
comparison
equal
deleted
inserted
replaced
29:7976500f47f9 | 30:ec9a17fef872 |
---|---|
28 "Return the character that causes a QUIT to happen. | 28 "Return the character that causes a QUIT to happen. |
29 This is normally C-g. Optional arg CONSOLE specifies the console | 29 This is normally C-g. Optional arg CONSOLE specifies the console |
30 that the information is returned for; nil means the current console." | 30 that the information is returned for; nil means the current console." |
31 (nth 3 (current-input-mode console))) | 31 (nth 3 (current-input-mode console))) |
32 | 32 |
33 (defun resume-pid-console (pid) | |
34 "Resume the consoles with a controlling process of PID." | |
35 (mapc (lambda (c) | |
36 (if (and (eq (console-type c) 'tty) | |
37 (= pid (console-tty-controlling-process c))) | |
38 (resume-console c))) | |
39 (console-list)) | |
40 ; documentation for mapc lies! | |
41 nil) |