unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* term-mode doesn't recognize "set window title" instruction
@ 2016-11-20 18:06 York Zhao
  2016-11-22 19:47 ` York Zhao
  2016-11-23  4:31 ` Bob Proulx
  0 siblings, 2 replies; 5+ messages in thread
From: York Zhao @ 2016-11-20 18:06 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi list,

In my .bashrc file, I have the following to set the terminal window title
and customize the shell prompt:

  PS1='\[\033]0;${PWD//[^[:ascii:]]/?}\007\]' # set window title
  PS1="$PS1"'\u@\h $ '             # user@host $<space>

The first line makes the current directory shown as the title of the
terminal window, and the prompt would be shows as:

  york@linux-host $

However, the first line which sets the terminal window title confused the
term-mode, and the following is what gets shown in term-mode buffer:

  0;/home/yorkyork@linux-host $

Of course the problem can be addressed by removing the first line in my
.bashrc file which sets the title of terminal window. However, I would love
to know if there's a way to allow the terminal window title to be shown,
while at the same time, also making Emacs term-mode happy!


Thanks in advance


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

end of thread, other threads:[~2016-11-23  5:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-20 18:06 term-mode doesn't recognize "set window title" instruction York Zhao
2016-11-22 19:47 ` York Zhao
2016-11-22 20:27   ` John Mastro
2016-11-23  4:31 ` Bob Proulx
2016-11-23  5:20   ` York Zhao

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).