<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Menu programming in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694164#M103170</link>
    <description>default perl is not having switch case statement as like shell prompt. If you want text based on terminal then you can go with case;do done statements itself.&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
    <pubDate>Tue, 20 Dec 2005 03:15:24 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-12-20T03:15:24Z</dc:date>
    <item>
      <title>Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694156#M103162</link>
      <description>Hi @ll,&lt;BR /&gt;&lt;BR /&gt;what is the best way to programm a menu like the SAM. in which language is SAM programmed?&lt;BR /&gt;&lt;BR /&gt;I prefer Perl or KSH. exists in Perl a module for a menu.&lt;BR /&gt;&lt;BR /&gt;I saw in KSH exist something like:&lt;BR /&gt;&lt;BR /&gt;select what in "Point1" "Point2"; do&lt;BR /&gt;    case $REPLY in&lt;BR /&gt;    1)&lt;BR /&gt;        echo "foo bar"&lt;BR /&gt;        break&lt;BR /&gt;        ;;&lt;BR /&gt;    2)&lt;BR /&gt;        echo "foo bar 1"&lt;BR /&gt;        break&lt;BR /&gt;        ;;&lt;BR /&gt;    esac&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;but exist something who looks more professional than that?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2005 09:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694156#M103162</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2005-12-19T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694157#M103163</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you add a new in SAM, it is shell script based.</description>
      <pubDate>Mon, 19 Dec 2005 10:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694157#M103163</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-12-19T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694158#M103164</link>
      <description>Exist somewhere an example script that i can adapt to my rules?</description>
      <pubDate>Mon, 19 Dec 2005 10:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694158#M103164</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2005-12-19T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694159#M103165</link>
      <description>Hi Try /usr/dt/bin/dtksh&lt;BR /&gt;examples are in /usr/dt/examples/dtksh&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2005 11:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694159#M103165</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-12-19T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694160#M103166</link>
      <description>Or do you mean a curses oriented menu?</description>
      <pubDate>Mon, 19 Dec 2005 11:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694160#M103166</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-12-19T11:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694161#M103167</link>
      <description>For Sam I believe, it is mainly in C, only a few parts are  scripts.&lt;BR /&gt;it uses a undocumented library called libObam which does curses or X11 depending if DISPLAY is defined. In any case it is not usable</description>
      <pubDate>Mon, 19 Dec 2005 11:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694161#M103167</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-12-19T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694162#M103168</link>
      <description>Here's a text based one I use - shell based - this one is called lp.mnu:&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 19 Dec 2005 11:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694162#M103168</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-12-19T11:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694163#M103169</link>
      <description>Thanks @ll&lt;BR /&gt;&lt;BR /&gt;@Geoff: that's what I searched&lt;BR /&gt;&lt;BR /&gt;the dtksh is also nice, but i need a textbased menu. I found this thread for dtksh:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=101310" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=101310&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;has someone an idea whether exists also something in perl?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 20 Dec 2005 03:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694163#M103169</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2005-12-20T03:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694164#M103170</link>
      <description>default perl is not having switch case statement as like shell prompt. If you want text based on terminal then you can go with case;do done statements itself.&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
      <pubDate>Tue, 20 Dec 2005 03:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694164#M103170</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-20T03:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694165#M103171</link>
      <description>You can use Perl with add-on modules to program menu driven apps. Check &lt;A href="http://www.cpan.org" target="_blank"&gt;www.cpan.org&lt;/A&gt; for more information &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~corliss/CursesWidgets-1.997/Widgets/Menu.pm" target="_blank"&gt;http://search.cpan.org/~corliss/CursesWidgets-1.997/Widgets/Menu.pm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 20 Dec 2005 03:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694165#M103171</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-20T03:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694166#M103172</link>
      <description>Hi,&lt;BR /&gt;if you are interested I use a menu driveen created by awk. It's a general purpuose: you write in a file the line you want to see in teh menu and the associated command and nothing else.&lt;BR /&gt;Let me know if you want it and I'll attach.&lt;BR /&gt;(I'd like to avoid to attach unuseful scripts)&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 20 Dec 2005 03:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694166#M103172</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-12-20T03:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694167#M103173</link>
      <description>An example of what we can do in ksh</description>
      <pubDate>Tue, 20 Dec 2005 06:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694167#M103173</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-12-20T06:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694168#M103174</link>
      <description>Thanks again @ll&lt;BR /&gt;&lt;BR /&gt;@Art: it would be nice if you could attache the awk script, thx&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Dec 2005 06:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694168#M103174</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2005-12-20T06:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694169#M103175</link>
      <description>Here is an example using AWK, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.iiug.org/software/archive/dbamenu" target="_blank"&gt;http://www.iiug.org/software/archive/dbamenu&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.html" target="_blank"&gt;http://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 20 Dec 2005 07:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694169#M103175</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-20T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694170#M103176</link>
      <description>In the zip file there are the script and and example of the use.&lt;BR /&gt;The script to run is Menu.ksh.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 22 Dec 2005 05:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694170#M103176</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-12-22T05:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694171#M103177</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;Just a remark,&lt;BR /&gt;&lt;BR /&gt;if you press space it toggles the line. &lt;BR /&gt;If you want to suppress that feature just comment the " ") case in the switch.&lt;BR /&gt;I saw too that the "tput cnorm" is not the right value to clear the bold mode, It is better to use "tput sgr0" to clear all the atributes at its place.&lt;BR /&gt;&lt;BR /&gt;Also, the trick used it to set the non canonical mode with a timeout of  (200ms) time=2 and min=1 (at least a charactere).&lt;BR /&gt;Sometimes it doesn't work as expected, so raise min to 3.&lt;BR /&gt; stty -icanon -echo min 3 time 2 ;&lt;BR /&gt;This will wait for 3 characteres or a inter timeout of 200ms &lt;BR /&gt;</description>
      <pubDate>Thu, 22 Dec 2005 06:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694171#M103177</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-12-22T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Menu programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694172#M103178</link>
      <description>You could check out the "keysh" shell. It is somewhat programmable. Though it doesn't present a  menu, it does use function keys to select tasks. Do a "man keysh" for more info.&lt;BR /&gt; &lt;BR /&gt;Rod Hills</description>
      <pubDate>Thu, 22 Dec 2005 10:19:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/menu-programming/m-p/3694172#M103178</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-12-22T10:19:16Z</dc:date>
    </item>
  </channel>
</rss>

