Mercurial > hg > xemacs-beta
comparison lisp/prim/console.el @ 108:360340f9fd5f r20-1b6
Import from CVS: tag r20-1b6
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:18:39 +0200 |
parents | 131b0175ea99 |
children | 538048ae2ab8 |
comparison
equal
deleted
inserted
replaced
107:523141596bda | 108:360340f9fd5f |
---|---|
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) |