Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Faster up and down movement bindings. | |
nnoremap <C-k> :-5<CR> | |
inoremap <C-k> <Esc>:-5<CR> i | |
nnoremap <C-j> :+5<CR> | |
inoremap <C-j> <Esc>:+5<CR> i | |
nnoremap <C-Up> :-5<CR> | |
inoremap <C-Up> <Esc>:-5<CR> i | |
nnoremap <C-Down> :+5<CR> | |
inoremap <C-Down> <Esc>:+5<CR> i |