dialog

DIALOG(1)                   General Commands Manual                  DIALOG(1)



å称
       dialog - ã·ã§ã«ã¹ã¯ãªãããããã¤ã¢ãã°ããã¯ã¹ã表示ãã

æ¸å¼
       dialog --clear
       dialog --create-rc file
       dialog [ --title title ] [ --clear ] [ --hline line ] [ --hfile file ]
       box-options

解説
       dialog ã¯ã·ã§ã«ã¹ã¯ãªããããã 質åå½¢å¼ãã¡ãã»ã¼ã¸è¡¨ç¤ºå½¢å¼ãªã©ã
       ãããããªç¨®é¡ã®ãã¤ã¢ãã°ããã¯ã¹ã表示ããããã°ã©ã ã§ãã
       ç¾å¨ãµãã¼ãããã¦ãããã¤ã¢ãã°ããã¯ã¹ã¯ 以ä¸ã®ã¨ããã§ãã

       yes/no ããã¯ã¹ã menu ããã¯ã¹ã input ããã¯ã¹ã message ããã¯ã¹ã text ããã¯ã¹ã
       info ããã¯ã¹ã checklist ããã¯ã¹ã program ããã¯ã¹ã ftree ããã³ tree
       ããã¯ã¹ã§ãã

ãªãã·ã§ã³
       --clear
              çµäºæã«ç»é¢ãã¯ãªã¢ãã¾ãã

       --create-rc file
              dialog ã¯ã©ã³ã¿ã¤ã ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ããµãã¼ããã¦ãã¾ãã file
              ã«ãµã³ãã«ã®è¨å®ãã¡ã¤ã«ãæ¸ãåºãã¾ãã

       --title title
              ãã¤ã¢ãã°ããã¯ã¹ã®æä¸è¡ã«è¡¨ç¤ºããæåå title ãæå®ãã¾ãã

       --hline line
              ãã¤ã¢ãã°ããã¯ã¹ã®æä¸è¡ã«è¡¨ç¤ºããæåå line ãæå®ãã¾ãã

       --hfile file
              ? ãã¼ã F1 ãã¼ãã¿ã¤ãããã¨ã㫠表示ãã file ãæå®ãã¾ãã

       ããã¯ã¹ãªãã·ã§ã³

       --yesno text height width
              縦 height 横 width ã®ãµã¤ãºã® yes/no ãã¤ã¢ã‐
              ã°ããã¯ã¹ã表示ãã¾ãã text ã§æå®ãããæååã¯ãã¤ã¢ãã°ããã¯ã¹ã®åé¨ã«
              表示ããã¾ãã ãã®æååãé·ããã¦ã1è¡ã§è¡¨ç¤ºã§ããªãå ´åã¯ã
              èªåçã«è¤æ°è¡ã«åå²ããã¾ãã text ãæåå "\n" ãããã¯æ¹è¡æå `\n´
              ãå«ãã§ããå ´åããã®å ´æ㧠æ¹è¡ãã¾ãã ãã®ãã¤ã¢ãã°ããã¯ã¹ã¯ ã¦ã¼ã¶ã«
              yes ããã㯠no ã¨ããè¿çãæ±ãã éã«å½¹ã«ç«ã¡ã¾ãã ãã¤ã¢ãã°ããã¯ã¹ã¯ Yes
              㨠No ã®ãã¿ã³ãæã£ã¦ããã TAB ãã¼ã§é¸æãããã¨ãã§ãã¾ãã

       --msgbox text height width
              message ããã¯ã¹ã¯ yes/no ããã¯ã¹ã¨ä¼¼ã¦ãã¾ããã message
              ããã¯ã¹ã®å ´åã OK ãã¿ã³ãã表示ããã¾ããã ãã®ãã¤ã¢ã‐
              ã°ããã¯ã¹ã使ã£ã¦ãã¡ãã»ã¼ã¸ã表示 ãããã¨ãã§ãã¾ãã
              ã¦ã¼ã¶ã¯ãã®ã¡ãã»ã¼ã¸ãèªãã å¾ã ENTER ãã¼ãæ¼ãã¦ã dialog
              ãçµäºããã·ã§ã«ã¹ã¯ãªããã®å®è¡ãç¶ãããã¨ã«ãªãã¾ãã

       --infobox text height width
              info ããã¯ã¹ã¯åºæ¬çã« message ããã¯ã¹ã¨åãã§ãããã¡ãã»ã¼ã¸ã表示ããã¨
              ããã«çµäºãã¾ãã dialog ã®çµäºæã«ç»é¢ã¯ã¯ãªã¢ããã¾ããã
              ã¡ãã»ã¼ã¸ã¯ã·ã§ã«ãå¾ã§ç»é¢ãã¯ãªã¢ããã¾ã§æ®ãã¾ãã
              ããã¯çµäºã¾ã§ã«æéã®ãããå¦çãè¡ããã¨ãã ã¦ã¼ã¶ã«ç¥ãããã¨ãã«ä¾¿å©ã§ãã

       --inputbox text height width
              input ããã¯ã¹ã¯ã¦ã¼ã¶ã«æååãå¥åããã ã¨ãã«å½¹ã«ç«ã¡ã¾ããå¥åæã«
              ããã¯ã¹ãã¼ã¹ ãã¼ã æ¼ããã¨ã§ãã¿ã¤ããã¹ãè¨æ£ãããã¨ãã§ãã¾ãã å¥åæå‐
              åããã¤ã¢ãã°ããã¯ã¹ããé·ããªã£ã å ´åã¯ãå¥åãã£ã¼ã«ããã¹ã¯ãã¼ã«ãã¾ãã
              çµäºæã«ã¯å¥åãããæååã stderr ã«åºåãã¾ãã

       --textbox file height width
              text ããã¯ã¹ã¯ãããã¹ããã¡ã¤ã«ã®å容ããã¤ã¢ãã°ããã¯ã¹ã®ä¸ã«
              表示ããããã®ãã®ã§ããããã¯ç°¡åãªããã¹ããã¡ã¤ã«ãã¥ã¢ã¼ã® ãããªãã®ã§ãã
              表示ä¸ã¯ã UP/DOWNãPGUP/PGDNãHOME/END ãã¼ã使ã£ã¦ãã¡ã¤ã«ä¸‐
              ã移åã§ãã¾ãã 1 è¡ããã¤ã¢ãã°ããã¯ã¹ããé·ãå ´åã¯ã LEFT/RIGHT
              ã§å·¦å³ã«ã¹ã¯ãã¼ã«ã§ãã¾ãã ãã便å©ã«ä½¿ãããã«ã
              åæ¹æ¤ç´¢ãå¾æ¹æ¤ç´¢ã®æ©è½ãå®è£ããã¦ãã¾ãã

       --menu text height width menu-height [ tag item ] ...
              menu ããã¯ã¹ã¯ããã®åã®ã¨ãããã¤ã¢ãã°ããã¯ã¹ã«ãªã¹ãã表示ãã¦
              ã¦ã¼ã¶ã«é¸ã°ãããã®ã§ãã åã¡ãã¥ã¼ã¯ tag 㨠item ã§æ§æããã¾ãã tag
              ã¯ä»ã®é ç®ã¨åºå¥ããããã®ãã®ã§ãã item ã¯ãã®é ç®ã表ãå容ãç‐
              ãè¨è¿°ãããã®ã§ãã ã¦ã¼ã¶ã¯ UP/DOWN ãã¼ãã¾ã㯠tag ã®åé æåã 1-9
              ãæ¼ããã¨ã§é ç®ãé¸ã¹ã¾ãã menu-height
              ã¯ä¸åº¦ã«è¡¨ç¤ºã§ããã¡ãã¥ã¼ã®æ°ãè¨å®ãã¾ãã menu-height
              ããå¤ãã®é ç®ãããå ´åãã¡ãã¥ã¼ãã¹ã¯ãã¼ã«ãã¾ãã dialog ãçµäºããã¨ãã
              é¸æãããã¡ãã¥ã¼ã® tag ã stderr ã«åºåããã¾ãã

       --prgbox command height width
              program ããã¯ã¹ã¯ command ã®åºåããã¤ã¢ãã°ããã¯ã¹ã«è¡¨ç¤ºãã¾ãã

       --checklist text height width list-height [ tag item status ] ...
              checklist ããã¯ã¹ã¯ã ã¡ãã¥ã¼ããé ç®ãé¸ã¶ã¨ããç¹ã§ menu
              ããã¯ã¹ã¨ä¼¼ã¦ãã¾ãã é ç®ã®ãªããã 1 ã¤ãé¸ã¶ã®ã§ã¯ãªãã
              ã¦ã¼ã¶ãåé ç®ããªã³ã»ãªãã«è¨å®ãããã¨ãã§ãã¾ãã
              åé ç®ã®ãªã³ã»ãªãã®åæè¨å®ã¯ status ã§è¨å®ã§ãã¾ãã çµäºæã«ã¯ã
              ã¹ãã¼ã¿ã¹ããªã³ã«ãªã£ã¦ããé ç®ã® tag ã stderr ã«åºåããã¾ãã

       --ftree file FS text height width menu-height
              ftree ããã¯ã¹ã¯ã ãã¡ã¤ã« file
              ã«è¨è¿°ããããã¼ã¿ããã¨ã«ããªã¼ã表示ãããã¤ã¢ãã°ããã¯ã¹ã§ãã
              ãã¡ã¤ã«åã®ãã¼ã¿ã¯ãfind(1) ã®åºåå½¢å¼ã®ããã«è¦ãã¾ãã find
              ã®åºåã®å ´åããã£ã¼ã«ãã»ãã¬ã¼ã¿ FS 㯠´/´ ã«ãªãã¾ãã height ããã³
              width ãæ£ã®å¤ã®å ´åã ftree ããã¯ã¹å¨ä½ã®çµ¶å¯¾çãªå¤§ãããè¨å®ãã¾ãã
              height ããã³ width ãè² ã®å¤ã®å ´åã ftree
              ããã¯ã¹ã®å¤§ããã¯ãèªåçã«é¸æããã¾ãã menu-height ã¯ã ftree
              ããã¯ã¹åé¨ã®ããªã¼ãµãã¦ã£ã³ãã¦ã®é«ããè¨å®ãã¾ãã®ã§ã æå®ããå¿è¦ãããã¾ãã
              text ã¯ã ftree ããã¯ã¹åé¨ã®ããªã¼ãµãã¦ã£ã³ãã¦ä¸é¨ã«è¡¨ç¤ºããã
              è¡ãåå²ããããã«æ¹è¡æå '\n´ ãå«ãããã¨ãå¯è½ã§ãã UP/DOWN ã¾ãã¯
              ´+´/´-´ãPG_UP/PG_DOWN ã¾ã㯠´b´/SPACE ãããã¦HOME/END ã¾ãã¯
              ´g´/´G´ ãæ¼ããã¨ã«ãããããªã¼åé¨ã移åãããã¨ãå¯è½ã§ãã ãªã¼ãã®é¸æã¯ã
              TAB ã¾ã㯠LEFT/RIGHT 㧠OK ãã¿ã³ã«ç§»åãã¦ãã ENTER ãæ¼ãã¾ãã
              é¸æãããªã¼ã (ããæ£ç¢ºã«ã¯ãããªã¼ã®ã«ã¼ããããªã¼ãã¾ã§ã®å®å¨ãªãã¹) ã
              stderr ã«è¡¨ç¤ºããã¾ãã Cancel ã®å¾ã« ENTER ãæ¼ãã¨ã stderr
              ã«ã¯ä½ã表示ããã¾ããã file ã«ã¯ find(1)
              å½¢å¼ã®åºåãå«ãããã¨ãå¯è½ã§ããã find(1) ã -d
              ãªãã·ã§ã³ä»ãã§èµ·åããåºåã®ãããªå½¢å¼ã使ç¨å¯è½ã§ãã
              ããªã¼ã®ãªã¼ãã¸ã®ä¸éã®ãã¹ã¯ãç¡ãã¦ããã¾ãã¾ããã
              ãã®ãããªãã¼ã¿ã¯ããã¡ã¤ã«ããã®èªã¿è¾¼ã¿æã«ä¿®æ£ããã¾ãã

       --tree FS text height width menu-height [ item ] ...
              tree ããã¯ã¹ã¯ã ftree ã«ä¼¼ã¦ãã¾ãããä¾å¤ãããã¾ãã 第 1
              ã«ããã¼ã¿ã¯ãã¡ã¤ã«ããå¥åãããã®ã§ã¯ãªããã³ãã³ãã©ã¤ã³ãã item item ...
              ã®å½¢å¼ã§èªã¿è¾¼ã¾ãã¾ãã 第 2 ã«ããã¼ã¿ã®ä¿®æ‐
              £ã¯ãããªãå ´åã«ãè¡ããã¾ããã ãã£ã¦ãfind(1) ã -d
              ãªãã·ã§ã³ä»ãã§èµ·åããå½¢å¼ã®ãã¼ã¿ã¯ä¸æ£ã«è¦ãã¾ãã

ã©ã³ã¿ã¤ã ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³
       1.  以ä¸ã®ããã«ããµã³ãã«ã®è¨å®ãã¡ã¤ã«ãä½æãã¾ãã

                 "dialog --create-rc <file>"

       2.  dialog ã¯ä»¥ä¸ã®ããã«èªã¿è¾¼ãè¨å®ãã¡ã¤ã«æ±ºå®ãã¾ãã

           a)  ç°å¢å¤æ° DIALOGRC ãè¨å®ããã¦ããå ´åããã®å¤ã¯è¨‐
               å®ãã¡ã¤ã«åã¨ãã¦æ±ããã¾ãã

           b)  (a) ã§æå®ããããã¡ã¤ã«ãåå¨ããªãã£ãå ´åã $HOME/.dialogrc ãè¨‐
               å®ãã¡ã¤ã«ã¨ãã¦æ±ããã¾ãã

           c)  (b) ã®ãã¡ã¤ã«ãåå¨ããªãã£ãå ´åã ããã©ã«ãã®è¨å®ã§èµ·åãã¾ãã

       3.  ãµã³ãã«ã®è¨å®ãã¡ã¤ã«ãç·¨éãã¦ã 2 ãåèã« dialog
           ãè¦ä»ãããã¨ãã§ããå ´æã«ã³ãã¼ãã¾ãã

ç°å¢å¤æ°
       DIALOGRC       ç¬èªã«è¨å®ãããå ´åã¯ãè¨å®ãã¡ã¤ã«åãæå®ãã¾ãã

é¢é£ãã¡ã¤ã«
       $HOME/.dialogrc     ããã©ã«ãã®è¨å®ãã¡ã¤ã«

診æ
       dialog ã Yes ã OK ãæ¼ããã¦çµäºããå ´å㯠0 ãã No ã Cancel
       ãæ¼ããã¦çµäºããå ´å㯠1 ãè¿ãã¾ãã ã¾ãã dialog ã®åé¨ã§ã¨ã©ã¼ãèµ·ãããã dialog
       ã ESC ãã¼ãæ¼ãã¦çµäºãããå ´åã-1 ãè¿ãã¾ãã

é¢é£é ç®
       dialog(3)


ãã°
       ã¿ã ãã£ã©ã¯ã¿ãå«ãããã¹ããã¡ã¤ã«ã text ããã¯ã¹
       ã§è¡¨ç¤ºããã¨ããã¾ã表示ããã¾ããã ããã¹ããã¡ã¤ã«ã®ä¸ã® ã¿ã ãã£ã©ã¯ã¿ã¯
       äºåã«ã¹ãã¼ã¹ã«å¤æãã¦ãããªãã¦ã¯ãªãã¾ããã

       ç»é¢ã®æ¸ãæãã«ã¯æéããããã¾ãã

       ftree ããã³ tree ã®ããã¯ã¹ã§ã¯ãããªã¼ãå·¦å³ã«åãããã¨ãã§ãã¾ããã
       ãã£ã¦ãå¤é層ã®ãã¼ã¿ã®å ´åãè¦ããªããªãé層ãçãã¾ãã 80 æå‐
       ã®æ¨æºçãªç»é¢ã§ã¯ã17 åã®é層ãè¦ãããã¨ãã§ãã¾ãã ããæ·±ãé層ã¯è¦ãã¾ããã
       ããã§ããããªã¼åã®ç§»åã¨ããªã¼ãã®é¸æã¯åä½ãã¾ãã

ä½è
       Savio Lam (lam836@cs.cuhk.hk)

       Anatoly A. Orehovsky (tolik@mpeks.tomsk.su) ãæ´æ°ãã¾ãã (ftree 㨠tree
       ããã¯ã¹)ã



                                2 October 1998                       DIALOG(1)