Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #94774
| From | jayjwa <jayjwa@atr2.ath.cx.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | [ONTOPIC] Screen 5.x and hardstatus lines |
| Date | 2026-10-29 12:25 -0400 |
| Organization | Atr2 RG 2026 |
| Message-ID | <87mrrwcw2x.fsf@atr2.ath.cx> (permalink) |
First, my apologies for posting about Linux in comp.os.linux.misc, but I
need a senior GNU Screen 5.x .screenrc config file programmer to sort
this mess out. When Screen 4.x jumped to Screen 5.x, it broke hardstatus
strings and I've not gotten them to work correctly since. Last night I
spent 60 minutes on this without results. We all love breaking config
file changes, don't we?
What I had before (the newsreader might wrap this) that I'd like to more
or less emulate in Screen 5-ese:
hardstatus alwaysfirstline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{=R}%n*%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l%{g}][%{B}%Y-%m-%d %{W}%c:%s %{g}]'
This places, in color, the hostname in brackets to the left, each new
window with its title, in color, along the top, and then the load
average in brackets along with the date/time achored to the right. All
that breaks in 5 but I can still see the hostname and each new window
title. Just subbing the new color codes does not work. I already tried
that.
My best attempts thus far:
hardstatus string '%{ 1;0}[ %{12;15}%H %{1;0}][% %{ 0;7}%?%-Lw%?%{13}(%{15}%n*%f%t%?(%u)%?%{5})%{-b 7}%?%+Lw%?%?%= %{2}][%{6} %D %M %d %{2}%c %{2}]'
This has colors, but it goes off the rails on the right side when you
added more and more windows. I'm working off this:
https://www.pingle.org/2026/04/26/screen-5-status-color-changes
There's more descriptions in the 3990 line man page, but I'm already
reading one epic poem (Dante's Divine Comedy) and there's only so much
time in the day.
Here's another attempt that doesn't work, either:
hardstatus string '%{ 1;0}[ %{12;15}%H %{1;0}] (%X) %Y %M %d %c%a'
The Arch and Gentoo examples don't work; at this point I'd be happy with
something close to what I had. I don't really care what color(s) (I use
dark terminals, btw). I could use Tmux but at this point it's personal.
--
PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
"The Internet should always be the Wild West!"
Back to comp.os.linux.misc | Previous | Next — Next in thread | Find similar | Unroll thread
[ONTOPIC] Screen 5.x and hardstatus lines jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-10-29 12:25 -0400
Re: [ONTOPIC] Screen 5.x and hardstatus lines "Carlos E.R." <robin_listas@es.invalid> - 2026-10-29 20:39 +0100
Re: [ONTOPIC] Screen 5.x and hardstatus lines Nuno Silva <nunojsilva@invalid.invalid> - 2026-10-30 01:25 +0000
csiph-web