[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any way I can split long lines in .screenrc?
From: |
Chris Jones |
Subject: |
Re: Is there any way I can split long lines in .screenrc? |
Date: |
Wed, 07 Jan 2009 19:45:43 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Wed, Jan 07, 2009 at 11:44:51AM EST, Micah Cowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Chris Jones wrote:
> > Couldn't find anything in the usual repositories.
> >
> > Here's my current hardstatus line (length=190):
> >
> > hardstatus alwayslastline "%{+r wk}%H %{+b yk}%0` %{+b wk} %1` | %2` %3`
> > |%4` %{+b wk}| %{+b wk}%l%{+b wk} |%{+b gk} %n %t %{+b wk}| %{+b wk}%W %=
> > %{+b wk} %D %m/%d/%y %c:%s | %{+b yk} %5`"
> >
> > I tried using a '\' backslash escape as in:
> >
> > hardstatus alwayslastline "%{+r wk}%H %{+b yk}%0` %{+b wk} %1` \
> > | %2` %3` |%4` %{+b wk}| %{+b wk}%l%{+b wk} \
> > |%{+b gk} %n %t %{+b wk}| %{+b wk}%W %= %{+b wk} \
> > %D %m/%d/%y %c:%s | %{+b yk} %5`"
> Yeah, screen doesn't allow split lines (or lines whose lengths are greater
> than 2048 bytes). Nor does it allow combining lines (say, with a semicolon)
Thanks!
Maybe we need an enhancement request here.
:-)
> > If .screenrc's syntax does not allow splitting lines .. is there a
> > workaround?
>
> I dunno... you could set it in an environment variable (careful with the
> quoting) and use screen's env var replacement.
I'll try that. At least I'll learn something that might come in handy in the
future.
> Or you could write a preprocesor that recombines split lines (and re-splits
> them for editing, I guess).
Definitely overkill, I think. All the same, would this preprocessor invoked by
the editor or by screen?
I'll take a look at vim and see if it provides such a feature in a way that's
comptatible with .screenrc parsing.
Thanks!
CJ