<?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 'C' printf - Highlight, Reverse Video in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697101#M723403</link>
    <description>I'm using 'C' and the printf command to do text output to a VT220.  Is it possible to turn on highlighting or reverse video in this mode?&lt;BR /&gt;&lt;BR /&gt;If so, can someone point me to some documentation?&lt;BR /&gt;&lt;BR /&gt;TIA!&lt;BR /&gt;Tom&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Apr 2002 14:49:34 GMT</pubDate>
    <dc:creator>Tom Dawson</dc:creator>
    <dc:date>2002-04-04T14:49:34Z</dc:date>
    <item>
      <title>'C' printf - Highlight, Reverse Video</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697101#M723403</link>
      <description>I'm using 'C' and the printf command to do text output to a VT220.  Is it possible to turn on highlighting or reverse video in this mode?&lt;BR /&gt;&lt;BR /&gt;If so, can someone point me to some documentation?&lt;BR /&gt;&lt;BR /&gt;TIA!&lt;BR /&gt;Tom&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 14:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697101#M723403</guid>
      <dc:creator>Tom Dawson</dc:creator>
      <dc:date>2002-04-04T14:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: 'C' printf - Highlight, Reverse Video</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697102#M723404</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;Yes, it is possible but you are really going about it in the wrong way. You should be using the 'curses' package so that the video functions do not rely on hard-coded sequences. If you use curses, the the reverse video, cursor positioning, underlining, graphics, ... are all determined at run-time by reading the terminfo database that are in turn determined by the setting of the TERM environment variable. The beauty of this method is that this will work with any defined terminal and you don't have to change a line of code. Man curses for details. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 14:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697102#M723404</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-04T14:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: 'C' printf - Highlight, Reverse Video</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697103#M723405</link>
      <description>You should probably have a look at using curses library routines for this task.  See the curses_intro(3x) and curses(5) man pages for further details.&lt;BR /&gt;&lt;BR /&gt;If you want to do it yourself, the following page contains the vt220 escape sequences:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.fastlane.net/~generic9/vt220.html" target="_blank"&gt;http://www.fastlane.net/~generic9/vt220.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 15:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697103#M723405</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-04-04T15:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'C' printf - Highlight, Reverse Video</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697104#M723406</link>
      <description>If you dont like to do a full implementation of curses, you can do a little trick:&lt;BR /&gt;&lt;BR /&gt;BOLD=`tput bold`&lt;BR /&gt;UND=`tput smul`&lt;BR /&gt;END_UND=`tput sgr0`&lt;BR /&gt;&lt;BR /&gt;use getenv in your c source and use it:&lt;BR /&gt;&lt;BR /&gt;char *bold;&lt;BR /&gt;&lt;BR /&gt;bold=getenv("BOLD"):&lt;BR /&gt;&lt;BR /&gt;printf (" %s, bold \n", bold);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I guess c code is write ( it so long to me...).&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 15:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-printf-highlight-reverse-video/m-p/2697104#M723406</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-04-04T15:15:16Z</dc:date>
    </item>
  </channel>
</rss>

