Skip to content

Instantly share code, notes, and snippets.

@michaelherold
Created May 1, 2012 16:11
Show Gist options
  • Save michaelherold/2569234 to your computer and use it in GitHub Desktop.
Save michaelherold/2569234 to your computer and use it in GitHub Desktop.
Working scrollback buffer with GNU screen
# This was discovered on the following blog post:
# http://liquidat.wordpress.com/2008/10/17/short-tip-gnu-screen-with-proper-scroll-session-management-support/
termcapinfo xterm* ti@:te@
# Also from that post is caption support, which is nice to have
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment