screenããbyobuã¸ç§»è¡ãããã¨ãã¦ããã£ããã¨ã¨ãä¸æ¦ä¿çããçç±
å»å¹´ãä¸æ¨å¹´ãããã«screenã®è¨å®è¨è¿°ã¹ã¯ãªããã¨ãã¦byobuã¨ããã¢ããªã±ã¼ã·ã§ã³ããããã¨ãç¥ã£ãããã¤ã®ã¾ã«ããããubuntuæ¨æºã§ã¤ã³ã¹ãã¼ã«ããã¦ããããã¾ãã¾è¦ãscreenshotãç¾ããã£ããã¨ããã£ã¦ç§»è¡ãæ¤è¨ããã以ä¸ã¯ç§»è¡ãããã¨ããçµéã¨ããªãããããããã®ãã¨ããçç±ã§ããã
ä»ç¾å¨ã®byobuããã¸ã§ã¯ããç解ãã
byobuã«ã¤ãã¦ã®æ¥æ¬èªã®ããã¥ã¡ã³ãã§ä¸çªã¾ã¨ã¾ã£ã¦ããã®ã¯ãã®ãã¼ã¸ã ã¨æãã
ãã®è¨äºããã£ããã«byobuã«é¢ããããã°è¨äºãªã©ãããã¤ãããã®ã ããæ®å¿µãªãã¨ã«ãã®ã©ããæ
å ±ãå¤ããã¦ç¾å¨ã®byobuãç解ããã«ã¯ä¸é©åã§ããããã®ãããã®byobuã¯åãªãscreenã®è¨å®ãã¡ã¤ã«ç·¨éã¹ã¯ãªããã ã£ãããã ããç¾å¨ã®byobuã¯Ubuntu Manpage: byobu - wrapper script for seeding a user's byobu configuration andãªã©ãè¦ãã¨screenã®ã¡ã¿ã³ãã³ãã®ããã«ãªã£ã¦ãã¦ããããã ã
ã¤ã¾ãããã®ã¨ãã®byobuã³ãã³ãã¯åºæ¬çã«
- byobuã®ã³ãã³ãã使ç¨ãã¦.screenrcã®è¨å®ãã¡ã¤ã«ãæ¸ãã ã
- screenã³ãã³ãã§byobuã®ä½æããè¨å®ãç¨ãã¦screenç°å¢ã使ç¨ãã
ã ã£ãã®ã«å¯¾ãã¦ãç¾å¨ã®byobuã¯
- byobuã³ãã³ããscreenã³ãã³ãã®ä»£ããã«å©ç¨ãã
- byobuã³ãã³ããåãã¦å®è¡ããã¨ãã.byobu/å ã«ç¬èªã®è¨å®ãã¡ã¤ã«ãä½æãã*1ããã®è¨å®ã¯byobuã³ãã³ãã§ä½ã£ãscreenã¦ã£ã³ãã¦ããç°¡åã«å¤æ´ã§ãã
- byobuã³ãã³ãã¯åãªãscreenã³ãã³ãã®ã¨ã¤ãªã¢ã¹ã ãã.screenrcã®ä»£ããã«.byobu/å ã®è¨å®ãå©ç¨ããç¹ã®ã¿ãéã
ã¨ãªããããããæ¬è³ªçã«byobuã¯screenã¨åãã³ãã³ãã§ããããããã®byobuã¨screenãã©ã®ç¨åº¦è¨å®ãã¡ã¤ã«ãªã©ãå ±æãã¦ããã®ããçåã ã£ãã
byobuãå®è¡ãã¦å®é¨
ä»ã¾ã§ããããã¨ç·¨éãã¦ãã.screenrcãæ®ããã¾ã¾byobuã³ãã³ããå®è¡ããã¨ãbyobuçãªä¸é¨äºæ®µãã¼ã¨èªåãè¡ã£ãè¨å®ã両æ¹åæ ããã¦ãããä¸åº¦byobuãçµäºãã¦.screenrcããªãã¼ã ãã¦å®è¡ããã¨ãä»åº¦ã¯byobuããã©ã«ãã®è¨å®ã®ã¿ã表示ãããèªåã®æå®ããè¨å®ãåæ ããã¦ããªããã¤ã¾ããbyobuã³ãã³ãã¯åºæ¬çã«.byobu/å ã®è¨å®ãã¡ã¤ã«ãèªãããå ã«.screenrcã®è¨å®ãèªã¿è¾¼ãã§ããããã§ãããä»åç§ã®.screenrcã§ã¯ä¸é¨ã®ãã¼ã«é¢ããè¨å®ãæ¸ããã¦ãããããåºæ¬çã«ã¯.screenrcãå ã«èªã¿è¾¼ãã§ãããã³ã³ããªã¯ããããããªè¨å®ãããã¨ä¸æ¸ãããããã§ããã
çµè«
çã®screenã³ãã³ãã¨ãã®ã¡ã¿çã³ãã³ãã§ããbyobuã¯ããç¨åº¦å ±åã§ããã
ãªãç§ãscreenããbyobuã¸ã®ç§»è¡æé ã¨ãªãç§ã¯ç§»è¡ãä¸æ¦æ¾æ£ããã®ã
ä¸ã¤ã«ã¯screenããbyobuã¸ç§»è¡ããã®ã«ã¯æéããããããããã¨æã£ãããã§ãããç¾ç¶ã®screenããbyobuã¸ã®ç§»è¡ã¯æ¬¡ã®äºã¤ã®ãã¿ã¼ã³ãèãããããä¸ã¤ã¯.screenrcããã®ã¾ã¾ç¶æããªããbyobuã使ç¨ããæ¹æ³ã§ãããä¸ã¤ã¯byobuã§ã§ããè¨å®ã.screenrcãã.byobu/ã¸ç§»è¡ãããæ®ãã.screenrcã«ä¿åããæ¹æ³ã§ããã
ä¸ã¤ç®ã®æ¹æ³ã®å ´åãä»åæåã«è¡ã£ãããã«byobuçå¤è¦³ãç¶æããªããä»ã¾ã§ã®è¨å®ãåæ ã§ããããæ軽ã§ç°¡åã ã¨æããããé·æçã«èããã¨ãã.screenrcã¨.byobu/å
ã®è¨å®ãå¹²æ¸ããªãä¿è¨¼ã¯ãªããã¾ãè¨å®ã.screenrcã¨.byobu/å
ã§åæ£ãã¦ãã¾ãç¹ããããªãããã£ã¦byobuã使ç¨ããã¨ã©ããã£ãæãã«ãªããã試ããªãã¨ããããé·æçã«ä½¿ç¨ããã«ã¯åãã¦ããªãã¨è¨ããã
ã§ã¯äºã¤ç®ã®æ¹æ³ã ãããã¡ããä¸ã¤ç®ã®æ¹æ³ã¨åããè¨å®ãåæ£ãã¦ãã¾ãããã®ä¸ããã¼ãã¤ã³ããªã©æ¬æ¥ã¯byobuã§è¨å®ã§ãããã®ããä¸é¨ã®è¨å®ã¯.screenrcã.byobu/å
ã®keybindãã¡ã¤ã«ãªã©ã«ç´æ¸ããããããªããããã§ã¯è¨å®ãã¡ã¤ã«ãåæ£ãã¦ãã¾ããã¡ãªããã°ããã強調ããã¦ãã¾ãã
ããã«å¯¾ãã¦å¾ããããã®ã¯byobuã®å¤å°ç¶ºéºãªã°ã©ãã£ãã¯ãããã§ãããããããç¨åº¦screenã®è¨å®ãããã£ã¦ãã人éã«ã¯ããã»ã©é
åã§ã¯ãªããçµè«ã¨ãã¦ãscreenã使ãæ
£ãããã®ãbyobuã¸ç§»ãã®ã¯ããã»ã©é
åçãªé¸æè¢ã§ã¯ãªãã¨ãããã¨ã«ãªãã
ã©ããã£ãå ´åãbyobuãæå¹ã
ã¾ããscreenã使ã£ããã¨ããªãããããã¯ç¬ç¹ã®è¨å®æ¹æ³ããã¼ãã¤ã³ããªã©ãé¢åã§screenãåé¿ãã¦ãã人ã«ã¨ã£ã¦ã¯byobuã¯ã¾ãã«ä½¿ããããscreenã§ããããããã§ãããã¾ãããã¾ãä»ã¾ã§.screenrcãããã£ã¦ããªãã£ãã¦ã¼ã¶ã¼ãåé¡ãªã移è¡ã§ããã ãããéã«ããªã.screenrcãããã£ã¦ãããããªããã¼ã¦ã¼ã¶ã¼ã¯ç§»è¡ã«é常ã«æéãããããã¨ãäºæ³ãããã確ãã«byobuã®ããã©ã«ãã°ã©ãã£ãã¯ã¯ç¶ºéºã ããã©ããã¦ããããã£ãè¦ãç®ã欲ããããç¾ç¶ã§ããã»ã©ä¸æºãããããªã©ãåååå³ãã¦ãã移ããã¨ãæã¾ããã ããã
è足
ã»ã¨ãã©æ¸ããå¾ã«è¦ã¤ããã®ã ããããã®è¨äºãbyobuã«ã¤ãã¦å²ã¨è©³ããæ¸ãã¦ããã¦ããã
*1:ãããåºæ¬çã«ã¯.screenrcã®è¨å®ããã¡ã¤ã«åãããã ãã®ããã