AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  KSH: check box menu

    Posted 06/02/16 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.


    #AIX-Forum


  • 2.  Re: KSH: check box menu

    Posted 06/06/16 02:38 AM

    Originally posted by: sakurai_tabi


    NO one has the ans ?

     


    #AIX-Forum


  • 3.  Re: KSH: check box menu

    Posted 06/08/16 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


    #AIX-Forum


  • 4.  Re: KSH: check box menu

    Posted 06/08/16 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

     


    #AIX-Forum


  • 5.  Re: KSH: check box menu

    Posted 06/08/16 04:27 PM

    Originally posted by: AncientAIXer


    You would have to handle I/O yourself.


    #AIX-Forum