Bug 60597 - screen's default hardstatus line uninformative
Summary: screen's default hardstatus line uninformative
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: screen
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: 60596
TreeView+ depends on / blocked
 
Reported: 2002-03-01 23:20 UTC by Mike McLean
Modified: 2007-04-18 16:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-12 21:46:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike McLean 2002-03-01 23:20:27 UTC
screen-3.9.9-3  (and others)

It would be nice if screen's default hardstatus were more informative.

Perhaps you could add the following two lines to /etc/screenrc:
defhstatus "^Et"
hardstatus string "[screen %n] %h"

For comparison, the current default is to have defhstatus unset and the
hardstatus line set to "%h".

Comment 1 Phil Copeland 2002-04-15 19:19:05 UTC
Tweaked.


Comment 2 Jens Petersen 2002-07-29 11:08:20 UTC
I would to propose using "%w" instead of "%h" (or at least "%t" in view of
bug 60596 ;-), since having a list of screen windows in the title line is
most useful IMHO.

Comment 3 Mike McLean 2002-07-29 16:33:53 UTC
How about a comprimise?  Change the default defhstatus and hardstatus string
settings in /etc/screenrc to:

defhstatus ""
hardstatus string "[screen %n: %t] %h"

Which for a bash session would result in a title like:

[screen 0: bash] user@host:~/foo
 


Comment 4 Jens Petersen 2002-07-30 07:25:59 UTC
That would be ok, but I think it would be more information having the window
list in the title.

Comment 5 Phil Copeland 2002-08-12 19:10:44 UTC
Ok,.. ahev you two sorted out what you want in this yet?

If not it's going out as is

Phil
=--=

Comment 6 Mike McLean 2002-08-12 20:43:19 UTC
I would prefer

defhstatus ""
hardstatus string "[screen %n%?: %t%?] %h"

(the %?%? suppresses the colon-space when the title is null)

I would rather not keep the screenlist up all the time b/c for many people this
will read "0* bash  1 bash  2 bash  3 bash", which is just not all that helpful.
 People that know enough to manually set the title (^AA) to something
interesting should also know enough to manually get a window list (^Aw).  Those
that really care can edit their .screenrc.

No default can be perfect for every situation, but I really think this one is
the better choice for now.


Comment 7 Phil Copeland 2002-08-12 21:45:57 UTC
ok.. screen-3.9.11-9 is born,.. should be in rawhide in the morning or you can
nab it from beehive/comps/dist/8.0/screen in a few minutes

Phil
=--=

Comment 8 Phil Copeland 2002-08-12 21:59:30 UTC
Closed




Note You need to log in before you can comment on or make changes to this bug.