Mercurial > emacs
changeset 101059:e75e790488a6
Revert previous change (commit mistake).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 10 Jan 2009 13:06:23 +0000 |
parents | b5a0fa253acd |
children | be6cb2e93600 |
files | lisp/frame.el |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/frame.el Sat Jan 10 13:04:37 2009 +0000 +++ b/lisp/frame.el Sat Jan 10 13:06:23 2009 +0000 @@ -648,6 +648,23 @@ (make-frame `((window-system . x) (display . ,display) . ,parameters))))) +(defun make-frame-on-tty (tty type &optional parameters) + "Make a frame on terminal device TTY. +TTY should be the file name of the tty device to use. TYPE +should be the terminal type string of TTY, for example \"xterm\" +or \"vt100\". The optional third argument PARAMETERS specifies +additional frame parameters." + ;; Use "F" rather than "f", in case the device does not exist, as + ;; far as the filesystem is concerned. + (interactive "FOpen frame on tty device: \nsTerminal type of %s: ") + (unless tty + (error "Invalid terminal device")) + (unless type + (error "Invalid terminal type")) + (if (eq window-system 'pc) + (make-frame `((window-system . pc) (tty . ,tty) (tty-type . ,type) . ,parameters)) + (make-frame `((window-system . nil) (tty . ,tty) (tty-type . ,type) . ,parameters)))) + (declare-function x-close-connection "xfns.c" (terminal)) (defun close-display-connection (display)