I have a hardstatus line set in my .screenrc file:
hardstatus alwayslastline '%{= kg}[ %{G}%H %{g}][%= %{= kB}%?%-Lw%?%{+b r}(%{G}%n*%f %t%?(%u)%?%{r})%{-b B}%?%+Lw%?%?%= %{g}%]'
# This is 127 characters
I routinely log in to remote servers that are shared with other users who have their own favourite hardstatus line. I want to change the hardstatus for my screen session by entering it as a command after starting the session. Unfortunately, screen stops accepting input for the command after reaching around 100 characters.
When I talk about screen commands, I mean the ones entered after tying ctrl+a :
Is there a way to increase the screen command character limit beyond 100 characters, or another way to set the hardstatus without altering the .screenrc file? A solution for changing it after the session is started would be preferred, but a command line option when starting screen would be a good alternative if it's possible.
One way to work around the problem would be put the hardstatus line in a file and enter ctrl+a :source <file>
, or type this after starting screen:
screen -p <SESSION_NAME or PID> -X hardstatus alwayslastline '%{= kg}[ %{G}%H %{g}][%= %{= kB}%?%-Lw%?%{+b r}(%{G}%n*%f %t%?(%u)%?%{r})%{-b B}%?%+Lw%?%?%= %{g}%]'
But I'd really like to know how to increase the character limit for commands.
Thanks in advance,
Matthew