Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
defbce "on"
# Enable 256 color term
term xterm-256color
# Cache 30000 lines for scroll back
defscrollback 30000
# New mail notification
backtick 101 30 15 $HOME/bin/mailstatus.sh
hardstatus alwayslastline
# Very nice tabbed colored hardstatus line
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
# change command character from ctrl-a to ctrl-b (emacs users may want this)
#escape ^Bb
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
@jenia

This comment has been minimized.

Show comment
Hide comment
@jenia

jenia Jan 31, 2015

Thanks very much for the config file.
I have a small problem with it though. I often get this error message on the bottom line: Message 12549 of 12588 bytes to small.

Actually, its the
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'

line that causes it. What is that? How can I remove it?

jenia commented Jan 31, 2015

Thanks very much for the config file.
I have a small problem with it though. I often get this error message on the bottom line: Message 12549 of 12588 bytes to small.

Actually, its the
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'

line that causes it. What is that? How can I remove it?

@rdpanek

This comment has been minimized.

Show comment
Hide comment

rdpanek commented Aug 10, 2015

Thanks

@qayshp

This comment has been minimized.

Show comment
Hide comment
@qayshp

qayshp Oct 15, 2015

What does your mailstatus.sh script print? Just an unread message count?

qayshp commented Oct 15, 2015

What does your mailstatus.sh script print? Just an unread message count?

@HengyuSama

This comment has been minimized.

Show comment
Hide comment
@HengyuSama

HengyuSama Apr 20, 2016

Amazing config file. I had fixed the annoying screen 8 colors using your config file.Thanks

Amazing config file. I had fixed the annoying screen 8 colors using your config file.Thanks

@ngovanmao

This comment has been minimized.

Show comment
Hide comment
@ngovanmao

ngovanmao Jul 8, 2016

Thanks a lot!

Thanks a lot!

@micwin

This comment has been minimized.

Show comment
Hide comment
@micwin

micwin Jul 19, 2016

wow, thanks a lot!

micwin commented Jul 19, 2016

wow, thanks a lot!

@mastropinguino

This comment has been minimized.

Show comment
Hide comment
@mastropinguino

mastropinguino Jul 26, 2016

Good work,.. thanks a lot !!

Good work,.. thanks a lot !!

@rrbarreto

This comment has been minimized.

Show comment
Hide comment
@rrbarreto

rrbarreto Dec 28, 2016

Great screen configuration, thank you for sharing

Great screen configuration, thank you for sharing

@markcurtis1970

This comment has been minimized.

Show comment
Hide comment
@markcurtis1970

markcurtis1970 Aug 30, 2017

Excellent example, thank you!

Excellent example, thank you!

@nitintt1991

This comment has been minimized.

Show comment
Hide comment
@nitintt1991

nitintt1991 Feb 8, 2018

How do implement these changes into screen

How do implement these changes into screen

@arainho

This comment has been minimized.

Show comment
Hide comment
@arainho

arainho Jun 20, 2018

great 👍

arainho commented Jun 20, 2018

great 👍

@fake-name

This comment has been minimized.

Show comment
Hide comment
@fake-name

fake-name Jul 18, 2018

Really needs

startup_message off

To kill the startup splash.

Really needs

startup_message off

To kill the startup splash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment