Get the most out of your Centmin Mod LEMP stack
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

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    6:05 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" \
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,561
    11,374
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,677
    Local Time:
    6:05 PM
    Nginx 1.21.x
    MariaDB 10.x
  3. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    6:05 PM
    Last edited: Jan 12, 2016
  4. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    6:05 PM
    Wondering if you put any more thought into this. Sorry to bring back an old thread, but I really think this would be a nice upgrade!
     
  5. eva2000

    eva2000 Administrator Staff Member

    49,561
    11,374
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,677
    Local Time:
    6:05 PM
    Nginx 1.21.x
    MariaDB 10.x
    Unfortunately, haven't really thought about this anymore. Probably right now will be something for after 123.09beta01 goes stable and for the next development version to look at.