Mercurial > emacs
diff src/term.c @ 83074:34a7a8f40548
Fix background-mode on terminal frames (Dan Nicolaescu).
lisp/faces.el (frame-set-background-mode): Guess the background mode
on terminal frames from the termcap type string.
(tty-create-frame-with-faces): Switch to the new frame during its setup.
Load the customization library corresponding to the terminal type of the
newly created frame. (Reported by Dan Nicolaescu <dann at ics dot uci dot edu>.)
lisp/startup.el (normal-top-level): Moved background-mode heuristic to
frame-set-background-mode.
src/dispnew.c (init_display): Update the tty-type frame parameter of
the initial terminal frame.
src/frame.h (Qtty, Qtty_type): New externs.
src/term.c (term_init): Update comments.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-114
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 11 Mar 2004 01:11:38 +0000 |
parents | a871be7b26a5 |
children | 108bb5537c12 |
line wrap: on
line diff
--- a/src/term.c Mon Mar 08 13:39:35 2004 +0000 +++ b/src/term.c Thu Mar 11 01:11:38 2004 +0000 @@ -2253,6 +2253,10 @@ display = get_named_tty_display (name); if (display) { + /* XXX We would be able to support multiple emacsclients from + the same terminal if display devices were Lisp objects. + (Lisp code must know the difference between two separate + displays on the same terminal device.) -- lorentey */ if (! display->display_info.tty->input) error ("%s already has a suspended frame on it, can't open it twice", name); return display; @@ -2320,11 +2324,11 @@ if we don't have one at the moment. */ fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0); #else - /* Alas, O_IGNORE_CTTY is a GNU extension that is only defined - on Hurd. On other systems, we need to dissociate ourselves - from the controlling tty when we want to open a frame on the - same terminal. The function setsid should be used for this, - but it didn't work for me. */ + /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only + defined on Hurd. On other systems, we need to dissociate + ourselves from the controlling tty when we want to open a + frame on the same terminal. The function setsid should be + used for this, but it didn't work for me. */ fd = emacs_open (name, O_RDWR | O_NOCTTY, 0);