AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  KSH: check box menu

    Posted Thu June 02, 2016 04:05 AM

    Originally posted by: sakurai_tabi


    May I know if we can write a check box menu through ksh ??

    I want to write a menu where user can choose multiple options.



  • 2.  Re: KSH: check box menu

    Posted Mon June 06, 2016 02:38 AM

    Originally posted by: sakurai_tabi


    NO one has the ans ?

     



  • 3.  Re: KSH: check box menu

    Posted Wed June 08, 2016 07:00 AM

    Originally posted by: Wouter Liefting


    I don't think ksh can do that. Nor can any other shell, for that matter.

     

    If you want to offer your users checkbox-like functionality from a shell script, you may want to look at "dialog". It's by default installed on Linux and is Open Source so it should not be too hard to install on AIX.

     

    http://www.linuxjournal.com/article/2807



  • 4.  Re: KSH: check box menu

    Posted Wed June 08, 2016 04:24 PM

    Originally posted by: AncientAIXer


    Checkboxes are graphical.  Command-line is cursors-based.  The best you could do is to do characters like:

     

    [  ]  option 1

    [X] option 2

     



  • 5.  Re: KSH: check box menu

    Posted Wed June 08, 2016 04:27 PM

    Originally posted by: AncientAIXer


    You would have to handle I/O yourself.