<?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: Standard template / Menu in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208210#M678522</link>
    <description>And...one of the links in the post JRF noted to is the one I was referring to:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=984784" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=984784&lt;/A&gt;</description>
    <pubDate>Sun, 08 Nov 2009 15:51:26 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2009-11-08T15:51:26Z</dc:date>
    <item>
      <title>Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208205#M678517</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am writing an operators menu and would like to present the users with a default display with the status of apps / processes / tasks displayed.&lt;BR /&gt;&lt;BR /&gt;Is there a way I can display a standard template each time the user chooses an option so that each screen is the same for each menu?&lt;BR /&gt;&lt;BR /&gt;I can probably create a function that echo's the template around the executed commands but is there a way to set this up so the menu is always in the outer sector of the display / output and then doesn't matter what is displayed in the middle or inner section?&lt;BR /&gt;&lt;BR /&gt;Hope i've explained ok?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Sat, 07 Nov 2009 09:13:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208205#M678517</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-11-07T09:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208206#M678518</link>
      <description>Which scripting/programming language are you using?&lt;BR /&gt;&lt;BR /&gt;This is a bit tedious to do efficiently using shell scripts. &lt;BR /&gt;&lt;BR /&gt;You could print out your template, then move the cursor back up to the beginning of the content (using tput, see "man tput" for more info). &lt;BR /&gt;When you are moving to another menu, first move the cursor back to the beginning of the content and fill the content area with space characters: they will overwrite the old menu. Then move the cursor back again to write in the new menu.&lt;BR /&gt;&lt;BR /&gt;You can optimize this by making all your menu content lines the same length (by filling them out with spaces), then just overwriting the old menu with the new one.&lt;BR /&gt;&lt;BR /&gt;If you use a more advanced scripting language (like perl) or a real programming language, you can use the functions of the curses library to help you. Often the curses library will auto-optimize the output for you, automatically moving the cursor around to change only the characters that need to be changed. It also has a concept of "windows", which is exactly what you need here.&lt;BR /&gt;&lt;BR /&gt;Man pages on curses:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/curses_intro.3X.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/curses_intro.3X.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/curses.5.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/curses.5.html&lt;/A&gt;&lt;BR /&gt;(+ man pages for each individual curses function)&lt;BR /&gt;&lt;BR /&gt;If you are unfamiliar with the curses library and wish to use it, I'd recommend reading a good book on curses programming. For example:&lt;BR /&gt;&lt;BR /&gt;John Strang, Programming with curses, O'Reilly, ISBN 0-937175-02-1&lt;BR /&gt;&lt;BR /&gt;Ncurses is a free extended re-implementation of curses. Its documentation might be useful with regular curses too:&lt;BR /&gt;&lt;A href="http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/" target="_blank"&gt;http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sat, 07 Nov 2009 10:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208206#M678518</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-11-07T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208207#M678519</link>
      <description>Hi Matti,&lt;BR /&gt;&lt;BR /&gt;I am open to suggestions to be honest and will take a look at the curse stuff for sure ...&lt;BR /&gt;&lt;BR /&gt;I am familair with tput so thanks for the suggestions.&lt;BR /&gt;&lt;BR /&gt;Chris.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Nov 2009 11:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208207#M678519</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-11-07T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208208#M678520</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;a couple of years back, there was a related post here.  one response included a set of awk scripts while another had a purely shell version.  both used tput codes for hightlighting, and did pretty much what it sounds like you want to do.&lt;BR /&gt;&lt;BR /&gt;I no longer have the link, it might be worth some searching around.  &lt;BR /&gt;&lt;BR /&gt;there also used to be a Tc/Tkl based menuing system available..that might have been at one of the GNU sites.</description>
      <pubDate>Sat, 07 Nov 2009 16:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208208#M678520</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-11-07T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208209#M678521</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;For pure simplicity, this thread has several variations of shell-based menu scripts:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=993074" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=993074&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 07 Nov 2009 16:56:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208209#M678521</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-07T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208210#M678522</link>
      <description>And...one of the links in the post JRF noted to is the one I was referring to:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=984784" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=984784&lt;/A&gt;</description>
      <pubDate>Sun, 08 Nov 2009 15:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208210#M678522</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-11-08T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Standard template / Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208211#M678523</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;Thank you very much - just what I was looking for and gives me something to work towards.&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 09 Nov 2009 11:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/standard-template-menu/m-p/5208211#M678523</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-11-09T11:54:04Z</dc:date>
    </item>
  </channel>
</rss>

