Skip to content

Instantly share code, notes, and snippets.

@samduy
Last active March 27, 2018 08:30
Show Gist options
  • Select an option

  • Save samduy/202eb8d8a3ba9b527a60edbc19613516 to your computer and use it in GitHub Desktop.

Select an option

Save samduy/202eb8d8a3ba9b527a60edbc19613516 to your computer and use it in GitHub Desktop.

Revisions

  1. samduy revised this gist Mar 27, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .screenrc
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,8 @@
    altscreen on

    # using mouse to select region
    mousetrack on
    # turning this on will lose the normal mouse control like select/copy/paste
    #mousetrack on

    # turn off welcome message
    startup_message off
  2. samduy revised this gist Feb 14, 2018. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .screenrc
    Original file line number Diff line number Diff line change
    @@ -40,4 +40,8 @@ caption always
    # Hide hardstatus: ctrl-a f
    bind f eval "hardstatus ignore"
    # Show hardstatus: ctrl-a F
    bind F eval "hardstatus alwayslastline"
    bind F eval "hardstatus alwayslastline"
    # Resize the panel (enlarge)
    bind > resize +10
    # Resize the panel (reduce)
    bind < resize -10
  3. samduy created this gist Feb 14, 2018.
    43 changes: 43 additions & 0 deletions .screenrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    # Author: samduy@github

    # Clear the screen after exiting Vim
    altscreen on

    # using mouse to select region
    mousetrack on

    # turn off welcome message
    startup_message off

    # 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* 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

    # A nice hardstatus with useful information
    hardstatus alwayslastline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%{+b}%n%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%Y-%m-%d %{W}%c:%s %{g}]'

    # Another nice caption for each panel
    # Highlight the current (focused) panel with RED color
    backtick 1 5 5 true
    termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
    caption string "%?%F%{= rW}%:%{= kw}%?%Y-%m-%d %?%F%{= rW}%:%{= kw}%?%c %?%F%{= rY}%{+b}%:%{= kG}%{-b}%?[%n %t] %?%F%{= rW}%:%{= kw}%?%h %1`"
    caption always

    # Hide hardstatus: ctrl-a f
    bind f eval "hardstatus ignore"
    # Show hardstatus: ctrl-a F
    bind F eval "hardstatus alwayslastline"