screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hardstatus question


From: todd freed
Subject: Re: hardstatus question
Date: Fri, 14 Oct 2011 10:45:39 -0600

On Fri, Oct 14, 2011 at 10:42 AM, Jostein Berntsen <address@hidden> wrote:
> On 14.10.11,09:17, todd freed wrote:
>> On Fri, Oct 14, 2011 at 8:43 AM, Jostein Berntsen <address@hidden> wrote:
>> > On 13.10.11,10:25, todd freed wrote:
>> >> Hello,
>> >>
>> >> In your .screenrc you can use "hardstatus" to set your hardstatus
>> >> line, using the STRING ESCAPES as documented in man screen.
>> >>
>> >> My question is about the %w option, which is supposed to be the number
>> >> and name of each window.
>> >>
>> >> It appears that the text generated by %w for each window is truncated
>> >> at 20 characters. Is it possible to change this? I think 30-35 would
>> >> be more useful in my case.
>> >>
>> >
>> > My hardstatus line is
>> >
>> > hardstatus string "%{.kc}%-w%{.kw}%n*%t%{-}%+w %c %Y%m%d
>> >
>> > Would that work better for you?
>> >
>> >
>> > Jostein
>> >
>> >
>> >
>> > _______________________________________________
>> > screen-users mailing list
>> > address@hidden
>> > https://lists.gnu.org/mailman/listinfo/screen-users
>> >
>>
>> Joe,
>>
>> could you explain how, if at all, it addresses the problem I brought
>> up? I see a -w and a +w. Should still expand to 20 characters per
>> window, right?
>>
>> -Todd
>>
>
> Sorry, a line like this should work better:
>
> hardstatus string '%{= kG}%-Lw%{= kW}%-30> %n*%f %t%{= kG}%+Lw%< %{= kG}%-=%D 
> %m/%d/%y,%C:%s %A,%1`%{-}'
>
>
> The "%-30" setting then reserves 30 characters to the right.
>
>
> Jostein
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users
>

Right. But, you've got a %-w (left of the active window), a %+w (right
of the active window), and the stuff in between is for describing the
current window. So, the %-30> applies only to the active window,
correct? I have tried this, and the non-active windows still get
truncated at 20 characters. Something like a %-30> which applies to
the expansion of %-w and %+w is what I'm looking for

-Todd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]