unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* suggested feature -- console-mode frame title sets Xterm title
@ 2002-06-14 16:49 Eric Hanchrow
  2002-06-15 21:47 ` Richard Stallman
  0 siblings, 1 reply; 41+ messages in thread
From: Eric Hanchrow @ 2002-06-14 16:49 UTC (permalink / raw)


In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'

I've been using Emacs in console mode recently, via an SSH connection
from a Windows box (using the very nice Windows SSH client "putty" --
http://www.chiark.greenend.org.uk/~sgtatham/putty).  That program,
naturally, creates a console window for me to type in, and it changes
the window's title when the program running under it sends escape
sequences.  To exploit that feature of Putty, when I'm just using the
shell (as opposed to using Emacs) I've set this variable in Bash:

        PROMPT_COMMAND='echo -ne "\033]0;${USER:-${LOGNAME}}@${HOSTNAME}: ${PWD}\007"'

This causes Bash to emit a bunch of characters every time it prints a
prompt; Putty responds by changing the window title (to include my
user name, host name, and working directory, obviously).

This escape sequence doesn't work just with Putty; it apparently
conforms to some standard or other, because other programs (such as
xterm) similarly change their window-bar title in response.

I'm proposing that Emacs, when running under a console (as opposed to
running under X), behave similarly to Bash -- that is, that it (when
the user so requests) send those sorts of characters, thus updating
Putty, or the xterm it's running under, or whatever, in the same
situations in which it would modify its frame title if it were running
under X.

I don't know if this is possible, although I suspect it is; I haven't
tried to hack something up myself.  I'd be interested to hear comments
from Emacs developers -- is this worth doing, has it already been
done, etc.  If it seems worth doing, I'll give it a whirl and if I'm
happy with what I've done, I'll submit it as a patch.

-- 
PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276

^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2003-10-30  3:03 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-14 16:49 suggested feature -- console-mode frame title sets Xterm title Eric Hanchrow
2002-06-15 21:47 ` Richard Stallman
2003-09-26  5:04   ` Martin Pool
2003-09-27  2:32     ` Richard Stallman
2003-09-29  5:17       ` Martin Pool
2003-10-01 21:21         ` Richard Stallman
2003-10-01 21:45           ` Martin Pool
2003-10-02  6:34           ` Martin Pool
2003-10-02  7:00             ` Miles Bader
2003-10-02  8:52               ` Martin Pool
2003-10-02 14:58                 ` Miles Bader
2003-10-02 19:15                 ` Richard Stallman
2003-10-03  5:58                   ` Martin Pool
     [not found]             ` <E1A58vH-0002KC-Mq@fencepost.gnu.org>
2003-10-03  1:04               ` Martin Pool
     [not found]                 ` <E1A5p16-0001Wq-3Y@fencepost.gnu.org>
2003-10-14  3:59                   ` Martin Pool
2003-10-14  6:39                     ` Eli Zaretskii
2003-10-14  7:15                       ` Martin Pool
2003-10-14  7:29                         ` Miles Bader
2003-10-14  7:44                           ` Martin Pool
2003-10-14  7:56                             ` Miles Bader
2003-10-14  8:01                               ` Martin Pool
2003-10-15  6:01                               ` Eli Zaretskii
2003-10-14  9:10                           ` Eli Zaretskii
2003-10-14  9:40                           ` Romain FRANCOISE
2003-10-14  9:07                         ` Eli Zaretskii
2003-10-15  4:08                       ` Richard Stallman
2003-10-15  6:07                         ` Eli Zaretskii
2003-10-15  6:22                           ` Miles Bader
2003-10-15  6:36                             ` Martin Pool
2003-10-16 14:06                               ` Richard Stallman
2003-10-16 14:06                           ` Richard Stallman
2003-10-14 19:32                     ` Richard Stallman
2003-10-15  2:47                       ` Martin Pool
2003-10-15 20:00                         ` Richard Stallman
2003-10-16  7:32                           ` Eli Zaretskii
2003-10-16  8:25                             ` Miles Bader
2003-10-16  8:35                               ` Martin Pool
2003-10-16  9:07                                 ` Miles Bader
2003-10-16 17:04                                   ` Stefan Monnier
2003-10-16 23:07                                 ` Richard Stallman
2003-10-30  3:03                                 ` Martin Pool

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).