以下の内容はhttps://shuzo-kino.hateblo.jp/entry/2019/06/05/234940より取得しました。


whiptailをつかってCLIに対話型画面をつくる その7:画面遷移してみる

#! /bin/bash
 
RESULT=$(whiptail --title "Menu" --menu "choose an option" 12 40 4 "1" "" "2" "" "3" "" 3>&1 1>&2 2>&3)

case $RESULT in
  1)
    whiptail --msgbox "YES 1" 10 40
    ;;
  2)
    whiptail --msgbox "NO 2" 10 40
    ;;
  *)
    echo "WtF...!?"
esac

実際にやってみると……
f:id:shuzo_kino:20190605234909p:plain
f:id:shuzo_kino:20190605234928p:plain




以上の内容はhttps://shuzo-kino.hateblo.jp/entry/2019/06/05/234940より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14