On Fri, Oct 14, 2011 at 10:42 AM, Jostein Berntsen <jber...@broadpark.no> wrote: > On 14.10.11,09:17, todd freed wrote: >> On Fri, Oct 14, 2011 at 8:43 AM, Jostein Berntsen <jber...@broadpark.no> >> 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 >> > screen-users@gnu.org >> > 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 > screen-users@gnu.org > 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 _______________________________________________ screen-users mailing list screen-users@gnu.org https://lists.gnu.org/mailman/listinfo/screen-users