too many windows overflows caption line
Bug #369828 reported by
psifertex
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
When more screen windows have been created than will fit in the caption line, the overflow is handled poorly.
In contrast, consider the following caption line:
caption always "%{=}%-
It automatically adjusts the focus of the shown windows to include the highlighted window and the extra windows are replaced with elipses. Also, it never runs the stats off the window either (in the above example, time, load, and date)
Related branches
Changed in byobu: | |
importance: | Undecided → Wishlist |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi there,
Thank you very much for the bug report.
I can confirm the issue, I see something very similar here. And I did try the screenrc fragment you included. It works as you say:
0$ u1 1$ bash 2$ bash 3$ config 4-$ bash 5$ bash 6$ bash 7$ bash 8$... 23:28 0.47 0.38 0.55 2009-05-13
and
...h 2$ bash 3$ config 4$ bash 5$ bash 6$ bash 7$ bash 8$ bash 9$ bash 23:28 0.75 0.46 0.56 2009-05-13
Note this from screen's manpage:
absolute position. You can specify to pad relative to the last absolute pad position by
adding a ’+’ qualifier or to pad relative to the right margin by using ’-’. The padding trun‐
qualifier to change this.
= pad the string to the display’s width (like TeX’s hfill). If a number is specified, pad to
the percentage of the window’s width. A ’0’ qualifier tells screen to treat the number as
cates the string if the specified position lies before the current position. Add the ’L’
> mark the current text position for the next truncation. When screen needs to do truncation,
it tries to do it in a way that the marked position gets moved to the specified percentage of
the output area. (The area starts from the last absolute pad position and ends with the posi‐
tion specified by the truncation operator.) The ’L’ qualifier tells screen to mark the trun‐
cated parts with ’...’.
This won't quite work for us. Note two parts of the configuration:
%-Lw%50L>
and
%-32=
It's the "32" that's a problem here. In the example that you gave, "%c %l %Y-%m-%d" always expands to exactly 32 characters. Unfortunately, we can't be quite so predictable, as your username/ hostname/ ipaddress are of varying lengths, and you can turn these status items on and off.
Unfortunately, this isn't going to work for us. I'm sorry.
:-Dustin