bugGNU Screen - Bugs: bug #42445, screen 4.2.1 in xterm: hardstatus...


bug #42445: screen 4.2.1 in xterm: hardstatus in window title disappears

Submitted by:  None
Submitted on:  Tue 27 May 2014 09:49:16 PM UTC  
Votes:  100  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.2.1
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sat 05 Sep 2015 05:16:28 PM UTC, comment #3:

Works fine here, it's most likely a problem with users ~/.bashrc

Amadeusz Sławiński <amade>
Project Administrator
Thu 29 May 2014 04:34:49 AM UTC, comment #2:

Yes, I had $PROMPT_COMMAND set to 'history -a', but after I unset it by commenting it out of my .bashrc and doing "unset PROMPT_COMMAND", the hardstatus in the window title still disappears when using screen.

In other words, $PROMPT_COMMAND didn't affect the window title behavior.

Tue 27 May 2014 11:24:22 PM UTC, comment #1:

Do you have $PROMPT_COMMAND set in your terminal? Does it affect the title?

Tue 27 May 2014 09:49:16 PM UTC, original submission:


I'm having a problem with the hardstatus in the window title disappearing using screen version 4.2.1.

The only 2 lines in my ~/.screenrc are:

termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
hardstatus string "%h [screen %n%?: %t%?]"

In GNU screen version 4.0.3 that I used previously, it set the hardstatus to be in the window title to something like:

computer_name ~ [screen 0: bash]

However, after upgrading GNU screen to version 4.2.1, the "[screen 0: bash]" part of the hardstatus in the window title disappears after I hit enter in the terminal. The "computer_name ~" part stays there. However, the "[screen 0: bash]" reappears when switching windows (e.g. doing a "C-a n"), or creating a new window ("C-a c").



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by amade (Posted a comment)
  • -unavailable- added by yyy7 (Voted in favor of this item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Sep 2015 05:16:28 PM UTCamadeStatusNone=>Works For Me
    Mon 02 Jun 2014 06:55:15 AM UTCyyy7Carbon-Copy-=>Added yyy7

    Back to the top

    Powered by Savane 3.1-cleanup