<?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 VI Query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130189#M152849</link>
    <description>Hi there all&lt;BR /&gt;&lt;BR /&gt;I am busy doing some menus in VI and want them to look nicer and more user friendly. HP-UX 11 using VT220 emulations.&lt;BR /&gt;&lt;BR /&gt;I've got the \t (tab) and \n (newline) as well as the $hi $lo down , but need to know if there's any way to make bold , underline or even italic characters.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Regards&lt;BR /&gt;Rudi</description>
    <pubDate>Thu, 27 Nov 2003 06:44:28 GMT</pubDate>
    <dc:creator>Rudi Martin</dc:creator>
    <dc:date>2003-11-27T06:44:28Z</dc:date>
    <item>
      <title>VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130189#M152849</link>
      <description>Hi there all&lt;BR /&gt;&lt;BR /&gt;I am busy doing some menus in VI and want them to look nicer and more user friendly. HP-UX 11 using VT220 emulations.&lt;BR /&gt;&lt;BR /&gt;I've got the \t (tab) and \n (newline) as well as the $hi $lo down , but need to know if there's any way to make bold , underline or even italic characters.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Regards&lt;BR /&gt;Rudi</description>
      <pubDate>Thu, 27 Nov 2003 06:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130189#M152849</guid>
      <dc:creator>Rudi Martin</dc:creator>
      <dc:date>2003-11-27T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130190#M152850</link>
      <description>The best way to do this is with the tput command.&lt;BR /&gt;&lt;BR /&gt;The man page has details on how to set variables for different emulations&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;&lt;BR /&gt;bold=`tput smso`</description>
      <pubDate>Thu, 27 Nov 2003 06:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130190#M152850</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-11-27T06:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130191#M152851</link>
      <description>This isn't really a vi issue I don't think.&lt;BR /&gt;Are your menus driven by shell scripts?&lt;BR /&gt;If so, take a look at tput (man tput).&lt;BR /&gt;&lt;BR /&gt;eg &lt;BR /&gt;tput bold;echo THIS IS BOLD;tput sgr0&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Thu, 27 Nov 2003 07:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130191#M152851</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-11-27T07:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130192#M152852</link>
      <description>tput is the way to perform these tasks. tput uses the Curses library which looks at the terminal's capability via $TERM. In turn, $TERM must match the 'terminal' you are using, in this case, a VT220 emulator. You'll have to read the emulator's manual to determine what it actually supports (there are emulators and there are cheap imitations...). To see what HP-UX thinks a VT220 can do, type this command:&lt;BR /&gt; &lt;BR /&gt;untic vt220&lt;BR /&gt; &lt;BR /&gt;and you'll see what Curses will do with each of the characteristics (like bold, clear, smso, etc). To decode the somewhat cryptic feature list, use man terminfo. Here is a general list:&lt;BR /&gt;  &lt;BR /&gt;export HB=$(/usr/bin/tput dim)          # dim text&lt;BR /&gt;export HV=$(/usr/bin/tput smso)         # 1/2 bright inverse&lt;BR /&gt;export IV=$(/usr/bin/tput bold)         # inverse&lt;BR /&gt;export UL=$(/usr/bin/tput smul)         # underline&lt;BR /&gt;export BL=$(/usr/bin/tput blink)        # blink&lt;BR /&gt;export EE=$(/usr/bin/tput sgr0)         # end all enhancements&lt;BR /&gt; &lt;BR /&gt;# Some terminals do not have 1/2 bright inverse so let's test this&lt;BR /&gt;# capability and substitute underline rather than $HV&lt;BR /&gt;&lt;BR /&gt;       if tput smso &amp;gt; /dev/null&lt;BR /&gt;       then&lt;BR /&gt;          HVUL=$HV&lt;BR /&gt;       else&lt;BR /&gt;          HVUL=$UL&lt;BR /&gt;       fi&lt;BR /&gt; &lt;BR /&gt;Another idea:&lt;BR /&gt; &lt;BR /&gt;alias c="tput khome;tput clear" # quick clear all of memory&lt;BR /&gt; &lt;BR /&gt;You can reach virtually all features available for the VT220 using tput including randomly moving the cursor around the screen using tput, but the even better news is that it will work with other terminals such as hpterm and xterm. tput is terminal-neutral by using the Curses library, so as long as the feature exists in the terminal *and* the terminfo database (see /usr/lib/terminfo/*) has an entry for that terminal, you'll be able to do some very fancy menu work.</description>
      <pubDate>Thu, 27 Nov 2003 10:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130192#M152852</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-11-27T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130193#M152853</link>
      <description>Rudi,&lt;BR /&gt;&lt;BR /&gt;tput blink    # Turns on blink &lt;BR /&gt;&lt;BR /&gt;tput bold     # Turns on bold&lt;BR /&gt;&lt;BR /&gt;Try a man on tput for more information :-&lt;BR /&gt;&lt;BR /&gt;man tput&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Fri, 28 Nov 2003 05:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130193#M152853</guid>
      <dc:creator>Keith Bevan_1</dc:creator>
      <dc:date>2003-11-28T05:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: VI Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130194#M152854</link>
      <description>Thank you to all for your help. It's working perfectly and looks stunning.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 05:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-query/m-p/3130194#M152854</guid>
      <dc:creator>Rudi Martin</dc:creator>
      <dc:date>2003-11-28T05:23:37Z</dc:date>
    </item>
  </channel>
</rss>

