[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: |
Micah Cowan |
Subject: |
Re: Is there any way I can split long lines in .screenrc? |
Date: |
Wed, 07 Jan 2009 08:44:51 -0800 |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081125) |
-----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)
> 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. Or you could write a
preprocesor that recombines split lines (and re-splits them for editing,
I guess).
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklk3AIACgkQ7M8hyUobTrFaMACfYvZqpw+7kl6OjyTD6qYPiZDT
2CIAoIcd5hlCqaL84TQC/GRkBB/b2sHy
=ECEg
-----END PGP SIGNATURE-----