My GNU Screen hardstatus:

hardstatus alwayslastline '%{= kG}%{C}%S: %{c}%{= kG}|%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}'

Normally looks like this:

hardstatus OK

However, whenever I resize my terminal emulator window by reducing its total width, eventually my hardstatus line starts to look like this:

hardstatus weird

It somehow gets confused and truncates / clobbers the color and the text.

How can I fix this?

  • 1
    You have an odd number of %?. – meuh Oct 10 '18 at 15:12
  • Thanks, this worked. If you want promote your comment to an answer, I'd be happy to accept it. – Thiago Perrotta Oct 11 '18 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.