<?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: TERM Prompt Problem. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670488#M50855</link>
    <description>Be aware that su witnout - is a very unsafe way to change users.  With su -, you will completely login as the new user and this includes executing the /etc/profile and .profile ( or .kshrc or /etc/csh.login and .login or .cshrc). As you can see, you must understand how all your shells work during login.&lt;BR /&gt;&lt;BR /&gt;Now, the only shell that handles the hundreds of terminal types correctly is the HP default version of /etc/profile (found in /usr/newconfig/etc). There is a command called /sbin/ttytype which will attempt to identify the myriad of real terminals and emulators.  NOTE: vt100 is one of the most poorly implemented standards for emulators. vt100 refers to a very old and obsolete DEC VT100 terminal. However, for simple ASCII command lines, most emulators are adequate but may fall apart for menu programs.&lt;BR /&gt;&lt;BR /&gt;Since it appears that you may be using csh (ie, setenv TERM vt100), you'll need to add the ttytype command to /etc/csh.login. The default csh.login has soemthing like:&lt;BR /&gt;&lt;BR /&gt;if ( ! $?TERM )&lt;BR /&gt;setenv TERM&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;This isn't good...some terminal emulators will set the terminal type as part of the telnet negotiation prior to login, and in some emulators, this may not match the actual emulation. Indeed, some users may set TERM in order to communicate a value such as the $DISPLAY variable.&lt;BR /&gt;&lt;BR /&gt;So, rather than test to see if it was set prior to login, ask ttytype to recheck the terminal:&lt;BR /&gt;&lt;BR /&gt;eval /sbin/ttytype -s&lt;BR /&gt;&lt;BR /&gt;ttytype 'guesses' what type of terminal you have by sending specific escape sequences to the terminal and waiting for a reply. If your emulator responds correctly then TERM will be set correctly. &lt;BR /&gt;&lt;BR /&gt;As mentioned, emulators are not real terminals and some have big problems emulating automatic responses.  In that case, your solution to forcibly set TERM to vt100 will have to suffice. Note that most modern terminals, especially smart terminals like the HP 700/9x series are better suited for menu programs such as SAM and swinstall.</description>
    <pubDate>Mon, 25 Feb 2002 02:29:37 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-02-25T02:29:37Z</dc:date>
    <item>
      <title>TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670481#M50848</link>
      <description>Whenever I su -  from root to another user, I am prompted by the following:-&lt;BR /&gt;TERM=(hp) &lt;BR /&gt;Then I just enter vt100 as the terminal and get into the user home directory. &lt;BR /&gt;How can eliminate this from hepnning, I have tried to setup the TERM in the .profile but did not succeed until now. &lt;BR /&gt;Please advise??&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Feb 2002 09:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670481#M50848</guid>
      <dc:creator>Mubarak Rebhan</dc:creator>
      <dc:date>2002-02-23T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670482#M50849</link>
      <description>&lt;BR /&gt;Hello Mubarak&lt;BR /&gt;&lt;BR /&gt;You have to set terminal type (eg. vt100)with your terminal name in a file called "/etc/ttytype". Additional info you can get it from #man ttytype.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;Manoj</description>
      <pubDate>Sat, 23 Feb 2002 09:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670482#M50849</guid>
      <dc:creator>manoj_pu</dc:creator>
      <dc:date>2002-02-23T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670483#M50850</link>
      <description>Just go into the user login.&lt;BR /&gt;open the .profile file or the .login file of the user&lt;BR /&gt;Comment this line &lt;BR /&gt;eval `tset -s -Q -m ':?hp' `&lt;BR /&gt;Now add setenv TERM vt100 &lt;BR /&gt;in the user's login file&lt;BR /&gt;or &lt;BR /&gt;export TERM=vt100&lt;BR /&gt;in the user .profile file.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;G manikandan</description>
      <pubDate>Sat, 23 Feb 2002 10:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670483#M50850</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-02-23T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670484#M50851</link>
      <description>more interesting discussions here:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x75e8660142b2d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x75e8660142b2d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xceef35067c18d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xceef35067c18d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;g`d luck&lt;BR /&gt;t+-&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Feb 2002 10:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670484#M50851</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-02-23T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670485#M50852</link>
      <description>Hi Mubarak,&lt;BR /&gt;&lt;BR /&gt;This occurs if you do the switch- user- command like you did:&lt;BR /&gt;&lt;BR /&gt;su -&lt;BR /&gt;&lt;BR /&gt;this doesn't only change your identity, but also the environment. If you do a su without the minus- character, the problem won't be existant. So try the following command:&lt;BR /&gt;&lt;BR /&gt;su&lt;BR /&gt;&lt;BR /&gt;you will switch identities, but the TERM- variable will be the same than before switching. At my level of kowledge there is no way to do su - without destroying TERM- variable.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Sat, 23 Feb 2002 15:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670485#M50852</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-23T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670486#M50853</link>
      <description>Hi Mubarak,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;Check your .profile and comment this line. &lt;BR /&gt;&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' ` &lt;BR /&gt;&lt;BR /&gt;make it &lt;BR /&gt;# eval ` tset -s -Q -m ':?hp' ` &lt;BR /&gt;&lt;BR /&gt;and set your term as &lt;BR /&gt;&lt;BR /&gt;export TERM=vt100 &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;TERM=vt100;export TERM&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Feb 2002 18:39:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670486#M50853</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-23T18:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670487#M50854</link>
      <description>Thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;I have tried all solutions but the one that worked in this case was updating the .login file by commenting:&lt;BR /&gt; eval `tset -s -Q -m ':?hp' ` &lt;BR /&gt;and adding: &lt;BR /&gt; setenv TERM vt100 &lt;BR /&gt;&lt;BR /&gt;Thanks again for your support.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Feb 2002 07:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670487#M50854</guid>
      <dc:creator>Mubarak Rebhan</dc:creator>
      <dc:date>2002-02-24T07:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: TERM Prompt Problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670488#M50855</link>
      <description>Be aware that su witnout - is a very unsafe way to change users.  With su -, you will completely login as the new user and this includes executing the /etc/profile and .profile ( or .kshrc or /etc/csh.login and .login or .cshrc). As you can see, you must understand how all your shells work during login.&lt;BR /&gt;&lt;BR /&gt;Now, the only shell that handles the hundreds of terminal types correctly is the HP default version of /etc/profile (found in /usr/newconfig/etc). There is a command called /sbin/ttytype which will attempt to identify the myriad of real terminals and emulators.  NOTE: vt100 is one of the most poorly implemented standards for emulators. vt100 refers to a very old and obsolete DEC VT100 terminal. However, for simple ASCII command lines, most emulators are adequate but may fall apart for menu programs.&lt;BR /&gt;&lt;BR /&gt;Since it appears that you may be using csh (ie, setenv TERM vt100), you'll need to add the ttytype command to /etc/csh.login. The default csh.login has soemthing like:&lt;BR /&gt;&lt;BR /&gt;if ( ! $?TERM )&lt;BR /&gt;setenv TERM&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;This isn't good...some terminal emulators will set the terminal type as part of the telnet negotiation prior to login, and in some emulators, this may not match the actual emulation. Indeed, some users may set TERM in order to communicate a value such as the $DISPLAY variable.&lt;BR /&gt;&lt;BR /&gt;So, rather than test to see if it was set prior to login, ask ttytype to recheck the terminal:&lt;BR /&gt;&lt;BR /&gt;eval /sbin/ttytype -s&lt;BR /&gt;&lt;BR /&gt;ttytype 'guesses' what type of terminal you have by sending specific escape sequences to the terminal and waiting for a reply. If your emulator responds correctly then TERM will be set correctly. &lt;BR /&gt;&lt;BR /&gt;As mentioned, emulators are not real terminals and some have big problems emulating automatic responses.  In that case, your solution to forcibly set TERM to vt100 will have to suffice. Note that most modern terminals, especially smart terminals like the HP 700/9x series are better suited for menu programs such as SAM and swinstall.</description>
      <pubDate>Mon, 25 Feb 2002 02:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-prompt-problem/m-p/2670488#M50855</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-02-25T02:29:37Z</dc:date>
    </item>
  </channel>
</rss>

