<?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 = HP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064882#M437529</link>
    <description>Hi guru.&lt;BR /&gt;&lt;BR /&gt;Thanks to you solutions.&lt;BR /&gt;I already manage to get the solution.&lt;BR /&gt;I edit the .login for oradev and devadm.&lt;BR /&gt;comment the line start with tset.&lt;BR /&gt;&lt;BR /&gt;It works! tq</description>
    <pubDate>Fri, 24 Aug 2007 02:51:42 GMT</pubDate>
    <dc:creator>Mohd Syafid Abdullah</dc:creator>
    <dc:date>2007-08-24T02:51:42Z</dc:date>
    <item>
      <title>Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064873#M437520</link>
      <description>Hi guru, &lt;BR /&gt;Please help me..Point waiting..&lt;BR /&gt;&lt;BR /&gt;In my Ux 11.23 have SAP ECC 6 and Oracle 10g.&lt;BR /&gt;How to make the term always accept HP rather than to press enter when we su - root / su - devadm /su - oradev.&lt;BR /&gt;&lt;BR /&gt;Please help me in urgent.</description>
      <pubDate>Fri, 24 Aug 2007 01:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064873#M437520</guid>
      <dc:creator>Mohd Syafid Abdullah</dc:creator>
      <dc:date>2007-08-24T01:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064874#M437521</link>
      <description>edit .profile&lt;BR /&gt;export TERM=hp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 01:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064874#M437521</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-24T01:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064875#M437522</link>
      <description>hi,&lt;BR /&gt;you can add it in the .profile</description>
      <pubDate>Fri, 24 Aug 2007 01:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064875#M437522</guid>
      <dc:creator>Joelmel Roche</dc:creator>
      <dc:date>2007-08-24T01:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064876#M437523</link>
      <description>&lt;!--!*#--&gt;You need to edit /etc/profile:&lt;BR /&gt;   # set term if it's not set&lt;BR /&gt;        if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup"  \&lt;BR /&gt;             -o "$TERM" = "network" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval `ttytype -s -a`&lt;BR /&gt; &lt;BR /&gt;Just add this before this first "if" test:&lt;BR /&gt;TERM=hp&lt;BR /&gt;&lt;BR /&gt;If you only want to do this for root, devadm and oradev, you need to do some testing:&lt;BR /&gt;case $(id -un) in&lt;BR /&gt;root|devadm|oradev) TERM=hp ;;&lt;BR /&gt;esac&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 02:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064876#M437523</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T02:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064877#M437524</link>
      <description>Hmm, perhaps that ttytype -a will not prompt the user.  So you can change instead the .profile files for each user.</description>
      <pubDate>Fri, 24 Aug 2007 02:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064877#M437524</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T02:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064878#M437525</link>
      <description>Hi all guru..&lt;BR /&gt;I already modify .profile for root..it success.&lt;BR /&gt;how about the oradev and devadm..&lt;BR /&gt;I change the profile in /home/devadm but when i su, it request the term again..please help</description>
      <pubDate>Fri, 24 Aug 2007 02:15:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064878#M437525</guid>
      <dc:creator>Mohd Syafid Abdullah</dc:creator>
      <dc:date>2007-08-24T02:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064879#M437526</link>
      <description>&amp;gt;I change the profile in /home/devadm but when i su, it request the term again&lt;BR /&gt;&lt;BR /&gt;You'll have to attach the .profile so we can see what you need to do.  (Also tell us what you changed.)</description>
      <pubDate>Fri, 24 Aug 2007 02:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064879#M437526</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T02:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064880#M437527</link>
      <description>Hi Dennis..&lt;BR /&gt;&lt;BR /&gt;Here the .profile that you mention..</description>
      <pubDate>Fri, 24 Aug 2007 02:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064880#M437527</guid>
      <dc:creator>Mohd Syafid Abdullah</dc:creator>
      <dc:date>2007-08-24T02:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064881#M437528</link>
      <description>Hi Syafid,&lt;BR /&gt;&lt;BR /&gt;You can try by editing /etc/profile and at the end put entry&lt;BR /&gt;TERM=HP&lt;BR /&gt;export TERM&lt;BR /&gt;&lt;BR /&gt;Hope it will then be applicable for all the user.</description>
      <pubDate>Fri, 24 Aug 2007 02:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064881#M437528</guid>
      <dc:creator>Redhat</dc:creator>
      <dc:date>2007-08-24T02:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064882#M437529</link>
      <description>Hi guru.&lt;BR /&gt;&lt;BR /&gt;Thanks to you solutions.&lt;BR /&gt;I already manage to get the solution.&lt;BR /&gt;I edit the .login for oradev and devadm.&lt;BR /&gt;comment the line start with tset.&lt;BR /&gt;&lt;BR /&gt;It works! tq</description>
      <pubDate>Fri, 24 Aug 2007 02:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064882#M437529</guid>
      <dc:creator>Mohd Syafid Abdullah</dc:creator>
      <dc:date>2007-08-24T02:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064883#M437530</link>
      <description>while running su, you should care that if you will run su - user then only user's profile will execute. only su will not execute root user's profile.</description>
      <pubDate>Fri, 24 Aug 2007 03:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064883#M437530</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-24T03:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064884#M437531</link>
      <description>&lt;!--!*#--&gt;It is really important to let your profile determine your terminal characteristics, so NEVER code TERM=anything. HP-UX supplies a very capable program called ttytype that determines what terminal you are using and what values should be used for COLUMNS and LINES. Users are no longer using 'real' terminals (ie, green screens or glass teletypes), but are instead running a plethora of imitators called terminal emulators. They may be truly primitive (dumb) terminal emulators such as Hyperterminal, freeware such as PuTTY or QCterm, or commercial products such as SecureCRT or WRQ Reflection products. Complicating this even more are GUI users that run Xwindows on their PC (Hummingbird, WRQ's Reflection/X, or similar, and the terminal window is really 'borrowed' from the server in the form of xterm, dtterm or hpterm.&lt;BR /&gt; &lt;BR /&gt;It's important to *always* run ttytype in /etc/profile, and remove the profile code that says something like this:&lt;BR /&gt; &lt;BR /&gt; if [ "$TERM" = "" ]&lt;BR /&gt; then&lt;BR /&gt;     eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt; else&lt;BR /&gt;     eval ` tset -s -Q `&lt;BR /&gt; fi&lt;BR /&gt; &lt;BR /&gt;or this:&lt;BR /&gt; &lt;BR /&gt;   # set term if it's not set&lt;BR /&gt;   if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup"  \&lt;BR /&gt;         -o "$TERM" = "network" ]&lt;BR /&gt;    then&lt;BR /&gt;       eval `ttytype -s -a`&lt;BR /&gt;    fi&lt;BR /&gt; &lt;BR /&gt;The above comment says: set term if it's not set which may have been relevant 25 years ago when all connections were 'real' terminals. But a telnet session may (or may not) carry a terminal ID when a user logs in and there is nothing standard about the value of TERM coming from a non-HP-UX source. For instance, a Linux box may set TERM=linux or TERM=linux-80x25, clearly incompatible with HP's extensive (but not infinite) teriminfo library (found in /usr/lib/terminfo). This TERM setting comes in from the remote client at the start of the telnet session and therefore sets TERM before /etc/profile is started.&lt;BR /&gt; &lt;BR /&gt;So to avoid painful mistakes, always ask ttytype to identify the terminal, regardless of whether it was already set. The important features must match the terminal emulator which is why you never hardcode the values. Terminal emulators are not accurate emulators. The most common emulation is vt100 yet 99% of the emulators allow things that are impossible on a DEC VT100 (see &lt;A href="http://vt100.net/" target="_blank"&gt;http://vt100.net/&lt;/A&gt; in case you've never seen one), things like changing the columns to 132 or lines to 60, programmable softtkeys, etc. Because there are just so many different programs out there, it is best to always test each connection.&lt;BR /&gt; &lt;BR /&gt;The following code should replace all the lines in /etc/profile that set the TERM, COLUMNS, LINES and ERASE:&lt;BR /&gt; &lt;BR /&gt;if tty -s&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;# always set TERM&lt;BR /&gt;&lt;BR /&gt;  eval $(ttytype -s -a)&lt;BR /&gt;  if [ "$TERM" = "" -o \&lt;BR /&gt;       "$TERM" = "unknown" -o \&lt;BR /&gt;       "$TERM" = "dialup" -o \&lt;BR /&gt;       "$TERM" = "network" -o \&lt;BR /&gt;       "$TERM" = "dumb" ]&lt;BR /&gt;  then&lt;BR /&gt;    export TERM=vt100&lt;BR /&gt;  fi&lt;BR /&gt;  stty erase "^H" kill "^U" intr "^C" eof "^D" 2&amp;gt; /dev/null&lt;BR /&gt;  stty hupcl ixon ixoff 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;# set $ERASE to ^H, if ERASE is not set or set to DEL&lt;BR /&gt;#   stty erase and $ERASE must match&lt;BR /&gt;&lt;BR /&gt;  if [ "$ERASE" != "^H" ]&lt;BR /&gt;  then&lt;BR /&gt;     export ERASE="^H"&lt;BR /&gt;     stty erase $ERASE&lt;BR /&gt;  fi&lt;BR /&gt;  tabs&lt;BR /&gt; &lt;BR /&gt;# Turn off the softkey labels 'cause they burn the terminal screens and&lt;BR /&gt;#   are annoying when editing or watching commands and data...&lt;BR /&gt;#   (no effect for non-softkey terminals)&lt;BR /&gt;# Also send an sgr0 (end enhancements) in case some&lt;BR /&gt;#   feature like blink is ON for this terminal&lt;BR /&gt; &lt;BR /&gt;  tput rmln&lt;BR /&gt;  tput sgr0&lt;BR /&gt; &lt;BR /&gt;# Some vt100 emulators don't behave right and ttytype&lt;BR /&gt;#   is unable to determine LINES or COLUMNS. Set a default&lt;BR /&gt;#   if either one is unset or too small. LINES=4 is a bug&lt;BR /&gt;#   in ttytype for 8bit VT220 emulators. &lt;BR /&gt; &lt;BR /&gt;  LINES=${LINES:-24}   &lt;BR /&gt;  COLUMNS=${COLUMNS:-80}  &lt;BR /&gt;  [ $LINES -le 4 ] &amp;amp;&amp;amp; export LINES=24 &lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;Once you use the above code, all users will be properly setup so things like vi and swinstall and SAM work correctly no matter what terminal they are using. Note that Xwindow users must enable /etc/profile processing with an .Xdefaults setting. Notice that all this code is protected by tty -s so when /etc/profile is run in batch mode (ie, cron, at, inittab, etc), the terminal-only commands will be bypassed.&lt;BR /&gt; &lt;BR /&gt;And after all the above has been said, the GSP/MP throws a wrench into the middle of everything. For some unexplained reason, the GSP/MP firware designers decided to hardcode your terminal setting (VT100 or HPTERM) and even modified HP-UX code for ttytype to override your TERM settings, regardles of what terminal you are using at the console. So even if you run ttytype at the console, it may not set the correct values. Although I prefer HPTERM, the vast majority of new boxes (all models in the rx or rp product line) are hardcoded to VT100. The best advice: DON'T use the console except for simple commands. If you have to switch between VT and HP like I do, use an emulator that can quickly change emulation mode such as Reflection for HP (*not* Reflection/X).</description>
      <pubDate>Fri, 24 Aug 2007 08:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064884#M437531</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-08-24T08:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064885#M437532</link>
      <description>And just a clarification, tset is deprecated (not recommended anymore). It was designed for a simpler time when terminals were connected to serial ports and they were 'real' terminals. The code and usage are quite convoluted -- use eval $(ttytype -s -a) as mentioned above.</description>
      <pubDate>Fri, 24 Aug 2007 08:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064885#M437532</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-08-24T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Term = HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064886#M437533</link>
      <description>Thanks for all yr comments.I'll appreciate it</description>
      <pubDate>Mon, 27 Aug 2007 19:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/term-hp/m-p/5064886#M437533</guid>
      <dc:creator>Mohd Syafid Abdullah</dc:creator>
      <dc:date>2007-08-27T19:19:27Z</dc:date>
    </item>
  </channel>
</rss>

