<?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 Set TERM Value via Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100389#M573440</link>
    <description>Please help me, I am newbie in Unix.&lt;BR /&gt;I have a case when i execute command tty on console:&lt;BR /&gt;$tty&lt;BR /&gt;/dev/tty1 or /dev/tty2 or etc&lt;BR /&gt;&lt;BR /&gt;And when i execute command tty on client machine:&lt;BR /&gt;$tty&lt;BR /&gt;/dev/pts/0 or /dev/pts/1 or etc&lt;BR /&gt;&lt;BR /&gt;How to make a script that can set $TERM in two conditions:&lt;BR /&gt;if tty=/dev/tty*   then set $TERM=vt100  &lt;BR /&gt;else set $TERM=ansi&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Oct 2003 05:29:11 GMT</pubDate>
    <dc:creator>george_114</dc:creator>
    <dc:date>2003-10-23T05:29:11Z</dc:date>
    <item>
      <title>Set TERM Value via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100389#M573440</link>
      <description>Please help me, I am newbie in Unix.&lt;BR /&gt;I have a case when i execute command tty on console:&lt;BR /&gt;$tty&lt;BR /&gt;/dev/tty1 or /dev/tty2 or etc&lt;BR /&gt;&lt;BR /&gt;And when i execute command tty on client machine:&lt;BR /&gt;$tty&lt;BR /&gt;/dev/pts/0 or /dev/pts/1 or etc&lt;BR /&gt;&lt;BR /&gt;How to make a script that can set $TERM in two conditions:&lt;BR /&gt;if tty=/dev/tty*   then set $TERM=vt100  &lt;BR /&gt;else set $TERM=ansi&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Oct 2003 05:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100389#M573440</guid>
      <dc:creator>george_114</dc:creator>
      <dc:date>2003-10-23T05:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set TERM Value via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100390#M573441</link>
      <description>#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;if [ tty = "/dev/tty*" ]&lt;BR /&gt;then    &lt;BR /&gt;        set $TERM=vt100 &lt;BR /&gt;else    &lt;BR /&gt;        set $TERM=ansi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards, Ernesto.</description>
      <pubDate>Thu, 23 Oct 2003 05:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100390#M573441</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2003-10-23T05:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set TERM Value via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100391#M573442</link>
      <description>Nice... 2 threads for the same problem.&lt;BR /&gt;&lt;BR /&gt;The answer given won't work, because if the test done and the fact that your shell variable won't be propagated to your current shell.&lt;BR /&gt;&lt;BR /&gt;A working version is in threadId=238205...&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Oct 2003 05:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-term-value-via-script/m-p/3100391#M573442</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-10-23T05:48:26Z</dc:date>
    </item>
  </channel>
</rss>

