User Tools

Site Tools


wiki:add_status_line_screen

Add status line to screen

Add the following to your ~/.screenrc and you'll see a status line down the bottom, showing in inverted text the date, time and system load. More escape codes found in man page link below.

Look 1

hardstatus alwayslastline
hardstatus string '%{= wb} You are in screen %n @ %H %S %{-}||| %Y-%m-%d %c | %l ' 

Look 2

caption always # activates window caption
caption string '%{= wk}[ %{k}%H %{k}][%= %{= wk}%?%-Lw%?%{r}(%{r}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %{k}][%{b} %d/%m %{k}%c %{k}]' # good looking window bar
bindkey -k k5 prev # F5 for previous window
bindkey -k k6 next # F6 for next window

Tested on

See also

References

wiki/add_status_line_screen.txt · Last modified: 2021/06/04 10:41 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki