GNU screen ã£ã¦ããããåå²ãã¦ä½æ¥ãã¦ã¦ããã¿ããâã¢ã¿ããããã¨ãã¨ã«ãã©ã£ã¦ãã å®ã¯ãææ°çã®GNU screenã¯åå²ã®ç¶æ ï¼ã¬ã¤ã¢ã¦ãï¼ãä¿åãã¦ãã¿ããï¼ã¢ã¿ããã§ããã ææ°çã¤ã£ã¦ãUbuntu9.10ã¨ã使ã£ã¦ããªããã§ã«ææ°çãå ¥ã£ã¦ãã¯ãã screenãèµ·åãã¦ãé©å½ã«åå²ã㦠prefix :layout new ã£ã¦å ¥åããã ãã ããã§ãã¬ã¤ã¢ã¦ãã®ã»ã¼ããã¡ã¤ã«ãã§ãã¦æ¬¡åã¢ã¿ãããã¦ãã¬ã¤ã¢ã¦ããä¿åãããããã«ãªãã GNU screenã£ã¦ä¾¿å©ã ã
ä»äºããè¤æ°ã®ãµã¼ãã§ä½æ¥ãããã¨ãå¤ãã®ã§2å¹´ã»ã©åããGNU Screenã使ãå§ãã¾ããããé常ã«å±éºã§ããã³ã¬ãããããããªãã¨çãã¦ãããªããªãã¾ããããã£ãããªã®ã§ãããä¸ã§ã®å é§è ã®è¨å®ãæåããããã¦ã³ãã³ãã¨ã«ã¹ã¿ãã¤ãºãã¦ããå 容ãæãã¦ã¿ã¾ãã screenã使ãå§ããå½æãä»ã¯äº¡ãOpen Source Magazine 2006/5æå·ã«ç¹éãçµã¾ãã¦ããã®ãå¿ æ»ã§è¦ãã¾ãããæ°ã¥ãã¨ãã®è¨äºã¯IBM dW Japanã«è¼ã£ã¦ãã¾ããã ç§ã®ã«ã¹ã¿ãã¤ãºã®åºæ¬ã¯ãããªæãã§ãã ããã©ã«ããã¼ãã¤ã³ãã¯ãªãã¹ãå°é ãã ãå±éºãããªã®ã¯ç¡å¹ã«ãã ã¦ã£ã³ãã¦ã®é¸æã»ãªãµã¤ãºãªã©ã¯é£ç¶ãã¦å®è¡ãã caption/hardstatusã§ã¿ã風ãªå¤è¦³ã ç¾å¨ã¯CVSçã®screenã常ç¨ãã¦ãã¦ã縦åå²ãã¬ã¤ã¢ã¦ãã®ä¿åãªã©ãæ©ãæ£å¼çãå¾ ãããæ©è½ãæºè¼ã§çã ææ¾ã
å ·ä½çã«ã¯ãæ¥æ¬èªãå«ãæåãã³ããããæ¹è¡ããããã¨ã表示ãããããã ãããç大ã«ããã UTF-8ç°å¢ã§ GNU Screen ã®æ¥æ¬èªè¡¨ç¤ºãå´©ãã件 - OSã®ãããªãã® Debian lennyå°å ¥ã¡ã¢(on VMware Player), lennyä¸ã®ruby 1.9.1ã®ãã«ãã§parse.cã®ã³ã³ãã¤ã«ãåºã¾ã, screenã¨UTF-8ã®ç¸æ§ããªãã¨ããã - ãã ã®ã«ã£ã(2009-02-07) ä¿®æ£ãããããããããªã®ã§ãapt-getããã¦å ¥ãç´ãäºã« sudo apt-get remove screen â»è¨å®ãã¡ã¤ã«ãæ®ããããªããã°ã sudo apt-get --purge remove screenæ¬ä½è½ã¨ãã¦ã㦠mkdir ~/tmp cd tmp wget ftp://ftp.uni-erlangen.de/pub/utilities/screen
ä»ããã ãã©ã http://www.gnu.org/software/screen/ http://dev.ariel-networks.com/Members/matsuyama/gnu-screen-vertical-split CVSã§é å¸ããã¦ãææ°ã®ã½ã¼ã¹ã«ã¯åæ ããã¦ãããããã®ã§ãã£ã¡ããåã£ã¦æ¥ãã256è²ã«å¯¾å¿ãããããã«configureãªãã·ã§ã³è¿½å ã§ã $ cvs -z5 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/screen co screen $ cd screen/src $ ./configure --enable-colors256 $ make $ sudo make install"Ctrl + escapeæå" + "|" ã§ç¸¦åå²ã mac patchãããã£ã½ãã(ã½ã¼ã¹å¿ãã) $
ããã®ã¨ããé£ç¶ã§ï¼åã»ã©åãè¨å®ããã¦ããã®åº¦ã«ããã©ãã§è¦ãã£ããªããã¨æ¢ãã¦ããã®ã§ãã¡ã¢ã åèã«ããã®ã¯ ã±ãã¹ãã㰠» MacPorts ã® Screen 4.0.3_3 ãããããã®ã§ãªãã¨ããã iTerm 㧠256 è² emacs + screen - milk1000cc ä¸è¨äºã¤ãè¦ãã°ç¹ã«åé¡ã¯ãªãã®ã ããã©ãããæ¹ã®ã¿åæãã¦ããã¾ãã 1, screenãã¤ã³ã¹ãã¼ã«ããã gitã®ææ°ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ããã¨defloginãã©ãã®è¨ãããã®ã§ãããããªããã¾ã§ã¯ã¨ãããã以ä¸ã®ã³ãã³ãã§ã svn co http://svn.macports.org/repository/macports/trunk/dports/sysutils/screen/ -r 45522 sudo port install 2, iTerm2ãã¤ã³ã¹ãã¼ã« ã¾ããããã
åºæ¬çã« localhost ã§å¾ ã¡åãããã¨ãæ³å®ãã¦ãã¾ããã誰ã§ãã¯ãªãããã¼ãã«æ¸ãè¾¼ãã¦ãã¾ãã¨å°ãã®ã§ãéä¿¡ãã¼ã¿ã® 1è¡ç®ãäºåå ±æãã¼ã¨ãã¦èªèãã¾ãããã®æååããã¼ã«ã«è¨å®ãããã®ã¨ä¸è´ããªãå ´åã¯æ¸ãè¾¼ã¿ã¾ããã 以ä¸ã«æ³¨æç¹ãèªèãã¦ããç¹ãæãã¾ãã èªåã²ã¨ãããã¢ã¯ã»ã¹ããªãåæãªã®ã§ã·ã³ã°ã«ã¹ã¬ããã§åä½ãã¾ããå¤éã¢ã¯ã»ã¹ããªãã§ãã ããã ãªãã·ã§ã³ã¨ãã¦æå®ããå¤ã®å¦¥å½æ§ãã§ãã¯ã¯ãã¦ãã¾ããããã¾ãå¤ãªå¤ãè¨å®ããªãã§ãã ããã åæ¢ããæ¹æ³ã¯ç¨æãã¦ãã¾ãããCtrl-C ãããããã»ã¹ã kill ãã¦ãã ããã åä¿¡ãããã¼ã¿ã®æåã³ã¼ãå¤æã« Encode.pm ã使ç¨ãã¦ãã¾ãããåºåã¨ã³ã³ã¼ãã£ã³ã°ã shiftjis ã«ããã¾ã¾ã§ã Windows(CygwinãActivePerl) ã¯ãã¨ãããMac OS X ã Linux ã§ã
縦åå²ãç®çã§ä½¿ãå§ããéçºçã® GNU ScreenãCVSãSubversionãGitã¨ãªãã¸ããªã追ãããã¦ããã¨ãä»ã«ã便å©ãªæ©è½ããããã¨ãåãã£ã¦ãã¾ãããããåå¹´ã»ã©ä¸»ã ã£ãå¤æ´ã¯ããã¾ãããã4.1.0 ã®ãªãªã¼ã¹ã«åãã¦ããã¥ã¡ã³ããæ´åããã¦ããããã§ãã®ã§ã2å¹´ã»ã©ä½¿ç¨ãã¦ãã¦åãã£ã¦ããå¤æ´ç¹ãã¾ã¨ãããã¨æãã¾ãã 4.1.0ã«ãããå¤æ´ç¹ ããã§åãä¸ããå¤æ´ç¹ã¯æ¬¡ã®éãã詳細㯠ChangeLog ãªã©ã確èªãã¦ãã ããã æ°ããæ©è½ 縦åå² ã¬ã¤ã¢ã¦ã ã¦ã£ã³ãã¦ã°ã«ã¼ã ãã¦ã¹æä½ã®ãµãã¼ã ã³ãã³ãã¡ãã»ã¼ã¸ã®ææ¢ å¤é¨ããã®ã³ãã³ãååã æ¡å¼µãããã³ãã³ãï¼æ©è½ æ大ã¦ã£ã³ãã¦æ°ã®å¢å ã¦ã£ã³ãã¦çªå·ã®ç¸å¯¾æå® ã¤ãã³ãçºçã¦ã£ã³ãã¦ã®è£ 飾è¨å® è¨å®ã§ä½¿ç¨å¯è½ãªå¤æ°ï¼æ¸å¼ã®è¿½å ã¦ã£ã³ãã¦ãªã¹ãï¼ç»é¢ãªã¹ãã®æ¡å¼µ ãã®ä» 256è²ãµãã¼ã ã³ãã³ã
zsh ã§ãã°ã¤ã³æã« screen ãèµ·åããæ¹æ³ 2007-08-20-1: [Solaris] ~/.zlogin ã«ä»¥ä¸ãè¨è¿°ããã if [ ! "$WINDOW" ]; then exec screen -S main -xRR fi ãã°ã¤ã³ç´å¾ã«ãã¤ã screen ãæã£ã¦ããã®ã§ãããããã§æ¥½ã«ãªãã¾ããã - è¿½è¨ (2007-08-21) ã³ã¡ã³ãæ¬ã§æ å ±ãããã ããããã«ãä»ã®ãã¹ãã«ãã°ã¤ã³ãã㨠screen ãäºéèµ·åãã件ã§ããã以ä¸ã®ããã«ãã¦å¯¾å¦ã§ãããã§ãã if [ $TERM != "screen" ]; then exec screen -S main -xRR fi ãã ããSolaris ã®å ´å㯠terminfo ã« screen ã®è¨è¿°ããªãã®ã§ä¸è¨è¨å®ã§ã¯ãã¾ãããã¾ããã çµå±ã¡ã¤ã³ã§ä½¿ããã·ã³ã®ã¿ã«ãä¸çªä¸ã®è¨å®ããã¦ãã以å¤ã®ã
ååã®ç¶ãã§ããçµå±ã®æã³ãã³ãã©ã¤ã³ããå種æ å ±ã表示ããããã¨ãã§ããã°backtickã使ã£ã¦ã¹ãã¼ã¿ã¹ã©ã¤ã³ã«æ å ±ã表示ã§ãã¾ãã CPU使ç¨ç åè ã» cpu usage host_processor_info()é¢æ°ã使ããã¨ã§ãã¼ãããã®User,System,Idle,Niceã®CPUããã¯æ°ãåå¾ã§ãã¾ããã¨ãããã¨ã§ããåä½æéã«ããã¦ã( User+System+Niceã®å¢å å) / ( å ¨ããã¯æ°ã®å¢å å )*100 ãæ±ããã°CPU使ç¨çãæ±ããããâ¦ã¨æãã¾ããã½ã¼ã¹ã¿ã訳ãããªãã®ã§ã¯ã£ããè¨ãã¾ãããtopãçè«çã«ã¯ãããã¦æ±ãã¦ããããã§ããã¨ããã¨ã§ä¸è¨ã®ãµã¤ãã«è¼ã£ã¦ããã³ã¼ããåèã«ãã¦ä½ã£ãã®ãããã§ãã ã¾ã.cpu.oldããååèµ·åæã®ããã¯æ°ã®æ å ±ãåå¾ãã¾ããããããç¾å¨ã®CPUããã¯æ°ãåå¾ãã¦ããããã®å·®ããCPU使ç¨çã表示ã
ä»®æ³ç«¯æ«ããã¼ã¸ã£ã®screenã«ã¤ãã¦è¨è¿°ãã¦ããã¾ãã screenã³ãã³ãä¸è¦§ 3.9.13å¯¾å¿ screenã®ã³ãã³ãã¯å ¨ã¦ãã³ãã³ãæåãå ¥åããå¾ã« ä½ããã®ãã¼ãå ¥åãããã¨ã§å®è¡ããã¾ãã ããã©ã«ãã®ã³ãã³ãæåã¯ãCtrl + Aãã§ã(以é^Aã¨è¡¨è¨ãã¾ã)ã 以ä¸ã«ã³ãã³ãã®ä¸è¦§ã示ãã¾ãã ãã³ãã³ãåãé¢é£ãããã¼ãã¤ã³ã(æ¬å¼§å )ãã³ãã³ãã®èª¬æãã®é ã«è¡¨è¨ãã¦ããã¾ãã ä¾ãã° help ã³ãã³ã ãªãã°ãã¼ãã¤ã³ãã¯ã^A?ãã¨ãªãã¾ãã ããã©ã«ãã®ã³ãã³ãæåãå¤æ´ãã¦ããå ´åã¯ã^T?ãã®ããã«å¤ããã¾ãã help (?) ãã¼å²ãå½ã¦ã®ãã«ãã表示ãã¾ãã ã¦ã£ã³ãã¦æä½ screen (c) æ°ããã¦ã£ã³ãã¦ã¨ã·ã§ã«ãçæãã¾ãã next (n) 次ã®ã¦ã£ã³ãã¦ã«åæ¿ãã¾ãã prev (p) åã®ã¦ã£ã³ãã¦ã«åæ¿ãã¾ãã other (^A
2007å¹´8æ24æ¥çºå£²ã® WEB+DB PRESS Vol.40 ãç¹é2 coLinuxï¼Emacsï¼GNU screenï¼zsh ï¼»å®çªï¼½Linuxéçºç°å¢ ã ã®ãµãã¼ããã¼ã¸ã§ãã è¨å®ãã¡ã¤ã«ã®éå½¢ ç¹éå ã§ç´¹ä»ããã½ããã¦ã§ã¢ã®è¨å®ãã¡ã¤ã«ã®éå½¢ã§ããæä½éã®è¨å®ãè¡ã£ã¦ãã¾ããå¿ è¦ã«å¿ãã¦é ç®ã追å ãã¦ã使ããã ããã files/dot.emacs .emacs ã®éå½¢ã§ãã~/.emacs ã«ç½®ãã¦ãã ããã files/dot.screenrc .screenrc ã®éå½¢ã§ãã~/.screenrc ã«ç½®ãã¦ãã ããã files/dot.zshrc .zshrc ã®éå½¢ã§ãã~/.zshrc ã«ç½®ãã¦ãã ããã åèãªã³ã¯ éçºç°å¢ Screen x PuTTY x Emacs x 256color : Hasta Pronto.org PuTTY ãã Emacs
Leopardã®ã¿ã¼ããã«(Terminal.app)ã¯ã¿ãåã ããscreenãããªãï¼ãããªãã¨ãªãã§ããã¿ã¼ããã«ä¸ã§ã¯[control]ãå¤ç¨ããã®ã§ãã¿ãã®åãæ¿ãã[control]ã§ããã®ããã«screenã使ãæ¹ã¾ã¡ãã£ã¦ãããããã¾ãããããè¨å®ã§ã©ãã«ããªããããªæ°ãããããscreenã®æ©è½ã¯ããã ããããªãããã ã¨ã«ãããã¨ããããããªãã¨ãªãscreenã使ã£ã¦ããã®ã§ããããããã¨ãã¹ã¯ãã¼ã«ã§ãã¾ãããæã ãä¸çæ¸å½èª¿ã¹ã¾ããã Mac OS Xã®Terminalã§screenã®ãããã¡ã¼ããã¦ã¹ã§ã¹ã¯ãã¼ã«ããæ¹æ³ | blog onk .screenã«ä¸ã®1è¡ã追å ããã°OKã§ãã termcapinfo xterm* ti@:te@ ããã§ããã¦ã¹ã§ã¹ã¯ãã¼ã«ã§ããããã«ãªãã¾ããã ã§ãããã³ãã¯ãã¼ãã¼ãã§ã¹ã¯ãã¼ã«ãããã§ããããLinuxã ã¨ã
Macã§ã¯å ããå ¥ã£ã¦ããã¿ã¼ããã«(Terminal.app)ã使ã£ã¦ãã¾ããããã§ååã§ãããã ãèæ¯è²ãé»ã«ããã¨æåãè¦ã«ããã®ã§ãæåè²ãè¿ããã¼ã«ã ãå ¥ãã¦ãã¾ãã yoshimasa niwa - TerminalColoreopard Leopardã®ã¿ã¼ããã«ã®ANSIé è²ãå¤ãããã¼ã« ãã®ã¿ã¼ããã«ã¯ã¿ãåã«ãªã£ã¦ããã®ã§ãã¿ããåãæ¿ããªããè¤æ°ã®ä½æ¥ãåæ並è¡ã§è¡ããã¨ãã§ãã¾ãããã ãã¿ãã®æä½ãã¡ã³ãã¦ãªãã§ããã¿ã¼ããã«ã使ãæã¯[control]ãã¼ãå¤ç¨ããã®ã§ãããã¿ãã®æä½ã®æã ã[command]ãã¼ã使ããªããã°ãªãã¾ãããï¼è¨å®ãã ãï¼ï¼ ããã§ãscreenã使ããã¨ã«ãã¾ãããcoLinux on Windowsã®æã¯æ®éã«ä½¿ã£ã¦ããã®ã§ã使ãæ¹ã¯åãã£ã¦ãã¾ããã¨ãããããMacã«screenãå ¥ããæ¹æ³ã å®ã¯ãMac OS X Leo
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}