Re: Re: Re: Persistence of a window's title?

2020-05-19 Thread Steve Ross
Neal, I just realized that, although one approach is to unset the PROMPT_COMMAND variable, another approach is to use the "screen" command of "defdynamictitle off" in my "~/.screenrc" file.  With this setting, the content of the PROMPT_COMMAND variable does not have an effect when opening *ne

Re: Re: Re: Persistence of a window's title?

2020-05-19 Thread Steve Ross
Neal, Thanks, thanks, thanks! You wrote: I googled your prompt command, it is probably your system default. My "/etc/bashrc" looks to be exactly the same one as in the book that you referenced.  That explains the particular content of PROMPT_COMMAND. You wrote: ...it is the culprit a

Re: Re: Persistence of a window's title?

2020-05-19 Thread Neal Fultz
I googled your prompt command, it is probably your system default. This book lists it as a default in /etc/bashrc for fedora, for example: https://books.google.com/books?id=0VRnDwAAQBAJ&pg=PA260&lpg=PA260&dq=printf+%5C033k%25s@%25s:%25s%5C033%5C%5C&source=bl&ots=yDkW0btNGw&sig=ACfU3U0JX62IdmvjkAxx

Re: Re: Persistence of a window's title?

2020-05-19 Thread Steve Ross
Neal, Thank you very much for your suggestions.  I looked at the links but I am still puzzled (although I know next to nothing about Xterm or "termcapinfo".) Here is my PROMPT_COMMAND:     $ echo $PROMPT_COMMAND     printf "\033k%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"