Skip to content

grml-screenrc needs changes for screen 5.0 #251

@akorn

Description

@akorn

GNU Screen 5.x introduced several incompatible changes: for example, colours have to be specified numerically now, and the %l string escape to get the load average is gone.

I got started on converting the old screenrc and it's now usable for me, but still not quite the same as it used to be. (In particular, the "bell in window X" message is still messed up.)

I'm sharing what I have so others can use it as a starting point, but it's unlikely I'll be able to commit more of my own time to refining it.

Ideally we'd also be able to support screen 4.x and 5.0 concurrently...

# while this works, forking to run `/bin/cut` once every 5s feels expensive and wasteful
backtick 3 5 5  /bin/cut -d' ' -f1-3 /proc/loadavg
caption always "%{+b}%{= 9;0}$USER@%{= 15;0}%H | %{= 11;0}(load: %3` | %{= 9;0}cpu: %1` | %{= 10;0}net: %2`)  %-21=%{= 15;0}%D %Y-%m-%d %0c"
hardstatus alwayslastline "%{= 1;7 }%n%f %t %{= 7;0} | %?%-Lw%?%{= 4;7}%n%f %t%?(%u)%?%{= 7;0}%?%+Lw%? %{= 7;0}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions