<?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: Shell colour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547963#M224397</link>
    <description>You're right. In SCO I did this all the time.&lt;BR /&gt;Do not see the same in HPUX though.</description>
    <pubDate>Thu, 19 May 2005 09:26:25 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-05-19T09:26:25Z</dc:date>
    <item>
      <title>Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547962#M224396</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I like to do some fancy stuff. Is there any way to give colours to  echo messages from shell scripts . &lt;BR /&gt;&lt;BR /&gt;Are there any tput or any escape sequences available .&lt;BR /&gt;&lt;BR /&gt;I have seen some one did the  same in SCO Unix .  Is it possible in HP ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2005 09:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547962#M224396</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-05-19T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547963#M224397</link>
      <description>You're right. In SCO I did this all the time.&lt;BR /&gt;Do not see the same in HPUX though.</description>
      <pubDate>Thu, 19 May 2005 09:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547963#M224397</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-05-19T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547964#M224398</link>
      <description>&lt;BR /&gt;i dont whether it will work in HP, but it works for me in linux console&lt;BR /&gt;&lt;BR /&gt;echo -en "\E[$c1;$c2m"  followed by the text&lt;BR /&gt;&lt;BR /&gt;where $c1 and $c2 are numeric values which sets color.&lt;BR /&gt;&lt;BR /&gt;to reset you can do 'tput sgr0'&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 19 May 2005 09:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547964#M224398</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-19T09:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547965#M224399</link>
      <description>Handling of color escape characters are a function of the shell you are using. I have never tried it but I am almost certain, if you use the same bash as your hpux shell, and a teminal emulator capable of handling color codes, you will get the fancy colored stuff like almost any linux flaovir in default configuration.</description>
      <pubDate>Thu, 19 May 2005 09:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547965#M224399</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-05-19T09:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547966#M224400</link>
      <description>Whatever ANSI escape sequences for COLOURS, HIGHLIGHTS, BOLD, UNDERLINE - should still work on HP-UX.&lt;BR /&gt;&lt;BR /&gt;The way these codes is interpreted is a function of your shell and the Terminal characteristics. Most notably -- if you're using VT52, VT100, VT102 and some color_xterm variations.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2005 10:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547966#M224400</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2005-05-19T10:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547967#M224401</link>
      <description>Actually, color is always a function of the terminal, not the shell. While you can change commands with an alias or change $PS1 to contain a special eascape sequence that produces colors, it is the terminal the displays the results. So you start with your emulator (I assume you aren't using a 'real' glass terminal which  would likely not have any colors). If it is a vt100, forget color--there are no colors on a vt100. Now there are some programs that lie and say they are a vt100 but implement things like multiple pages of memory or variable line widths, none of which are vt100 feature (for the real story: &lt;A href="http://vt100.net/" target="_blank"&gt;http://vt100.net/&lt;/A&gt; ).&lt;BR /&gt; &lt;BR /&gt;So you start by reading about your terminal emulator. It's important to understand the differences between a PC running an Xwindow emulator versus running a terminal emulator (like Hyperterminal). Xwindows does not have any terminal emulator. Instead, you login to a remote system and 'steal' a copy of xterm or dtterm or hpterm and redisplay the results  back to your screen. Your emulator is the program you are running and has little to do with the PC. &lt;BR /&gt; &lt;BR /&gt;Color is usually defined (in a compatible manner) with the terminfo database and the Curses library. The primary tool is tput (to display or set features) and untic will show you what a particular terminal knows how to do. After you look at man terminfo, you'll realize that there is a *lot* to fancy terminal features. &lt;BR /&gt; &lt;BR /&gt;Now some emulators (like WRQ's Reflection) will implement a color map to add additional cues for what are monochrome enhancements like blink and underline, etc. You can use this short script to display the most common enhancements:&lt;BR /&gt; &lt;BR /&gt;HB=$(tput dim)          # dim text&lt;BR /&gt;HV=$(tput smso)         # 1/2 bright inverse&lt;BR /&gt;IV=$(tput bold)         # inverse&lt;BR /&gt;UL=$(tput smul)         # underline&lt;BR /&gt;BL=$(tput blink)        # blink&lt;BR /&gt;EE=$(tput sgr0)         # end enhancements&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;echo "Typical names:"&lt;BR /&gt;echo "\t$EE Normal $IV Inverse $EE$HB Dim $EE$BL Blink $EE$HV halfbrite $EE$UL underline $EE"&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;echo "Curses capname (tput)"&lt;BR /&gt;echo "\t$EE  SGR0  $IV   BOLD  $EE$HB DIM $EE$BL BLINK $EE$HV    SMSO   $EE$UL   SMUL    $EE"&lt;BR /&gt;echo&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2005 15:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547967#M224401</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-19T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547968#M224402</link>
      <description>I only know that hpterm and dtterm can handle colours, curses and all the fancy things, the default xterm to my knowledge can't display colours.</description>
      <pubDate>Thu, 19 May 2005 16:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547968#M224402</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-05-19T16:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547969#M224403</link>
      <description>i am using my root profile's of my systems&lt;BR /&gt;like;&lt;BR /&gt;PS1="`tput bold`$(hostname):`tput rmso`\$PWD\#"&lt;BR /&gt;&lt;BR /&gt;it makes my hostnames bold when i connect&lt;BR /&gt;via telnet&lt;BR /&gt;&lt;BR /&gt;Good Luck,</description>
      <pubDate>Fri, 20 May 2005 04:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547969#M224403</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-05-20T04:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell colour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547970#M224404</link>
      <description>&lt;BR /&gt;U can try 'tput setaf #'&lt;BR /&gt;&lt;BR /&gt;where # is a number &lt;BR /&gt;&lt;BR /&gt;0 - black&lt;BR /&gt;1 - red&lt;BR /&gt;2 - green&lt;BR /&gt;&lt;BR /&gt;and so on.&lt;BR /&gt;&lt;BR /&gt;As written, it all depends on your settings, but it works for me on my HPUX-Box</description>
      <pubDate>Fri, 20 May 2005 05:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-colour/m-p/3547970#M224404</guid>
      <dc:creator>Dino_4</dc:creator>
      <dc:date>2005-05-20T05:54:01Z</dc:date>
    </item>
  </channel>
</rss>

