changeset 98586:6b0f820343fd

(make-frame-on-tty): Use "F" inside interactive. Support `pc' ``window-system''.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 09 Oct 2008 16:08:13 +0000
parents 945a82ab6a01
children 72f6d87044d3
files lisp/frame.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/frame.el	Thu Oct 09 13:46:25 2008 +0000
+++ b/lisp/frame.el	Thu Oct 09 16:08:13 2008 +0000
@@ -630,12 +630,16 @@
 should be the terminal type string of TTY, for example \"xterm\"
 or \"vt100\".  The optional third argument PARAMETERS specifies
 additional frame parameters."
-  (interactive "fOpen frame on tty device: \nsTerminal type of %s: ")
+  ;; Use "F" rather than "f" to avoid reading from devices that don't
+  ;; like that.
+  (interactive "FOpen frame on tty device: \nsTerminal type of %s: ")
   (unless tty
     (error "Invalid terminal device"))
   (unless type
     (error "Invalid terminal type"))
-  (make-frame `((window-system . nil) (tty . ,tty) (tty-type . ,type) . ,parameters)))
+  (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))