SEARCH
TOOLBOX
LANGUAGES
Screen

Screen

From Chaehyun

Revision as of 01:29, 15 March 2012 by Xlos (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

cygwin 환경에서 screen 사용

  • ~/.screenrc 파일
screen -h 10000 -t xlos 2
screen -h 10000 -t xlos 1
screen -h 10000 -t xlos 0

bind c screen -t xlos
bind ^C screen -t xlos

bindkey "\033[15~" select 0
bindkey "\033[17~" select 1
bindkey "\033[18~" select 2
bindkey "\033[19~" select 3
bindkey "\033[20~" select 4
bindkey "\033[21~" select 5
bindkey "\033[23~" prev
bindkey "\033[24~" next

vbell off

defscrollback 10000
caption always "%{kg}%?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kg}%?%+Lw%?"
  • cygwin에서 재부팅 후 session 유지(?)가 안되는 문제
    • screen 에서는 session 정보를 /tmp/uscreens/S-username directory에 저장하는데, 재부팅시에 /tmp 이하 directory가 삭제되기 때문으로 추정
    • mkdir ~/.screen
    • ~/.bashrc 에 export SCREENDIR=/home/chaehyun/.screen 추가
Retrieved from "http://chaehyun.kr/w/Screen"