<?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: xterm window label in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622950#M39074</link>
    <description>hpterm is an emulator for HP smart terminals such as the 2392A and the 700/92...series. There is virtually nothing in common between hpterm and xterm or dtterm. xterm and dtterm emulate the dumb vt100/vt200 series of terminals from way-back in computer years.&lt;BR /&gt;&lt;BR /&gt;Use this to change hpterm's title bar and icon:&lt;BR /&gt;&lt;BR /&gt;TITLE="My Favorite Window Title"&lt;BR /&gt;echo "\033&amp;amp;f0k${#TITLE}D${TITLE}\c"&lt;BR /&gt;&lt;BR /&gt;This is unique to hpterm so there is no terminfo entry. Because there are so MANY different and incompatible terminals, the concept of a TERM variable plus a library of capabilities was developed. By using this library rather than hardcoding special escape sequences, programs like vi will work just fine on xterm or hpterm or many other terminal types.&lt;BR /&gt;&lt;BR /&gt;From a script, you have a lot of flexibility to perform terminal manipulation by using tput. tput accepts special codes (man terminfo) and returns back the terminal-specific string needed to perform the action. You can clear any terminal with either:&lt;BR /&gt;&lt;BR /&gt;$ clear&lt;BR /&gt;$ tput clear&lt;BR /&gt;&lt;BR /&gt;But you can also do lots of terminal manipulation where there are no predefined commands to do so:&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 CL=$(/usr/bin/tput clear)        # home, clear screen&lt;BR /&gt;  export ED=$(/usr/bin/tput ed)           # clear to end of screen&lt;BR /&gt;  export EE=$(/usr/bin/tput sgr0)         # end all enhancements&lt;BR /&gt;&lt;BR /&gt;# test some selected features:&lt;BR /&gt;&lt;BR /&gt;echo "Testing $IV bold $HB half-brite $HV half-inverse $UL underline $EE"&lt;BR /&gt;&lt;BR /&gt;And you'll see it works on all emulators. Now some terminal emulators do not have certain capabilities so the tput result will be null, and can be verified with the untic command.&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Nov 2001 20:51:00 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2001-11-30T20:51:00Z</dc:date>
    <item>
      <title>xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622942#M39066</link>
      <description>I know I have seen this somwhere in the past, How can I on the fly change the label on the xterm I am using?</description>
      <pubDate>Fri, 30 Nov 2001 14:45:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622942#M39066</guid>
      <dc:creator>Michael Bouwma_1</dc:creator>
      <dc:date>2001-11-30T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622943#M39067</link>
      <description>If it is hpterm and most X windows, on startup you can specify -title xxxxx.&lt;BR /&gt;&lt;BR /&gt;Don't think there is a way to change it after the window is open, but I have been wrong before.</description>
      <pubDate>Fri, 30 Nov 2001 14:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622943#M39067</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-11-30T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622944#M39068</link>
      <description>Hello Michael,&lt;BR /&gt;&lt;BR /&gt;This page contains exactly the information you need:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.linuxdoc.org/HOWTO/mini/Xterm-Title-6.html" target="_blank"&gt;http://www.linuxdoc.org/HOWTO/mini/Xterm-Title-6.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2001 14:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622944#M39068</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-30T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622945#M39069</link>
      <description>This is where I learned it.&lt;BR /&gt;&lt;BR /&gt;Pretty cool stuff.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://swexpert.com/C2/SE.C2.MAY.99.pdf" target="_blank"&gt;http://swexpert.com/C2/SE.C2.MAY.99.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Have fun,&lt;BR /&gt;C</description>
      <pubDate>Fri, 30 Nov 2001 14:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622945#M39069</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-30T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622946#M39070</link>
      <description>Thanks Marco, thats the ticket. Wow even a perl script. take a look John this is really cool, and sometime afetr xmas I might be intereseted in checking out your rocket stuff!&lt;BR /&gt;drop me a line @ MBouwma@softhome.net</description>
      <pubDate>Fri, 30 Nov 2001 14:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622946#M39070</guid>
      <dc:creator>Michael Bouwma_1</dc:creator>
      <dc:date>2001-11-30T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622947#M39071</link>
      <description>I feel a bit undereducated now, but learned a few things and still can't get it to work.&lt;BR /&gt;&lt;BR /&gt;Sigh</description>
      <pubDate>Fri, 30 Nov 2001 16:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622947#M39071</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-11-30T16:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622948#M39072</link>
      <description>John,&lt;BR /&gt;Here is my script&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/bin/echo '\033]2;'$*'\007\c'&lt;BR /&gt;&lt;BR /&gt;Use the command line&lt;BR /&gt;scriptname.sh "Xterm Title"&lt;BR /&gt;&lt;BR /&gt;This should work for you.&lt;BR /&gt;&lt;BR /&gt;C</description>
      <pubDate>Fri, 30 Nov 2001 17:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622948#M39072</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-30T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622949#M39073</link>
      <description>Ahh, the light of day has arrived.&lt;BR /&gt;&lt;BR /&gt;That esc string only works for dtterm, not hpterm.</description>
      <pubDate>Fri, 30 Nov 2001 19:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622949#M39073</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-11-30T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: xterm window label</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622950#M39074</link>
      <description>hpterm is an emulator for HP smart terminals such as the 2392A and the 700/92...series. There is virtually nothing in common between hpterm and xterm or dtterm. xterm and dtterm emulate the dumb vt100/vt200 series of terminals from way-back in computer years.&lt;BR /&gt;&lt;BR /&gt;Use this to change hpterm's title bar and icon:&lt;BR /&gt;&lt;BR /&gt;TITLE="My Favorite Window Title"&lt;BR /&gt;echo "\033&amp;amp;f0k${#TITLE}D${TITLE}\c"&lt;BR /&gt;&lt;BR /&gt;This is unique to hpterm so there is no terminfo entry. Because there are so MANY different and incompatible terminals, the concept of a TERM variable plus a library of capabilities was developed. By using this library rather than hardcoding special escape sequences, programs like vi will work just fine on xterm or hpterm or many other terminal types.&lt;BR /&gt;&lt;BR /&gt;From a script, you have a lot of flexibility to perform terminal manipulation by using tput. tput accepts special codes (man terminfo) and returns back the terminal-specific string needed to perform the action. You can clear any terminal with either:&lt;BR /&gt;&lt;BR /&gt;$ clear&lt;BR /&gt;$ tput clear&lt;BR /&gt;&lt;BR /&gt;But you can also do lots of terminal manipulation where there are no predefined commands to do so:&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 CL=$(/usr/bin/tput clear)        # home, clear screen&lt;BR /&gt;  export ED=$(/usr/bin/tput ed)           # clear to end of screen&lt;BR /&gt;  export EE=$(/usr/bin/tput sgr0)         # end all enhancements&lt;BR /&gt;&lt;BR /&gt;# test some selected features:&lt;BR /&gt;&lt;BR /&gt;echo "Testing $IV bold $HB half-brite $HV half-inverse $UL underline $EE"&lt;BR /&gt;&lt;BR /&gt;And you'll see it works on all emulators. Now some terminal emulators do not have certain capabilities so the tput result will be null, and can be verified with the untic command.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2001 20:51:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xterm-window-label/m-p/2622950#M39074</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-11-30T20:51:00Z</dc:date>
    </item>
  </channel>
</rss>

