Welcome to Centmin Mod Community
Become a Member

Suggestion: Use dialog command for beautiful menus

Discussion in 'Feature Requests & Suggestions' started by ethanpil, Jan 12, 2016.

  1. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    12:10 PM
    I am not sure if you have seen the dialog tool for linux. I thought someday it would make an easy drop in replacement for the current menu system... What do you think?

    Some info:
    dialog man page
    dialog tutorial

    The code below produces this menu (which you can basically continue parse with the current bash code):
    [​IMG]

    Code:
    dialog --title "Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com" \
    --menu "Centmin Mod Menu:" 23 60 24 \
    1 "Centmin Install" \
    2 "Add Nginx vhost domain" \
    3 "NSD setup domain name DNS" \
    4 "Nginx Upgrade / Downgrade" \
    5 "PHP Upgrade / Downgrade" \
    6 "XCache Re-install" \
    7 "APC Cache Re-install" \
    8 "XCache Install" \
    9 "APC Cache Install" \
    10 "Memcached Server Re-install" \
    11 "MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu" \
    12 "Zend OpCache Install/Re-install" \
    13 "Install ioping.sh vbtechsupport.com/1239/" \
    14 "SELinux disable" \
    15 "Install/Reinstall ImagicK PHP Extension" \
    16 "Change SSHD Port Number" \
    17 "Multi-thread compression: pigz,pbzip2,lbzip2..." \
    18 "Suhosin PHP Extension install" \
    19 "Install FFMPEG and FFMPEG PHP Extension" \
    20 "NSD Re-install" \
    21 "Update - Nginx + PHP-FPM + Siege" \
    22 "Add Wordpress Nginx vhost + WP Super Cache" \
    23 "Update Centmin Mod Code Base" \
    

     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    12:10 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    12:10 PM
    Last edited: Jan 12, 2016
    • Like Like x 1
    • Creative Creative x 1