<?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: setting TERM for login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448311#M10094</link>
    <description>I'd take a look at the tset man page and use in conjuction with setting term type say in the .profile ?&lt;BR /&gt;&lt;BR /&gt;As to CDE check out the resource : *loginShell : True, for hpterm dtterm etc : see there man pages or do a forum search. If you set this say in $HOME/.Xdefaults you'll be sure entriesin .profile  are read when a user starts an xterm or dtterm via CDE's front panel etc ...</description>
    <pubDate>Wed, 27 Sep 2000 14:11:18 GMT</pubDate>
    <dc:creator>Alex Glennie</dc:creator>
    <dc:date>2000-09-27T14:11:18Z</dc:date>
    <item>
      <title>setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448309#M10092</link>
      <description>We have a non-root user id that whenever that id logs into the server the we get TERM = (hp) .  We then normally enter ansi and hit return.  How and where can we set this user id up so that it defaults to ansi(or another TERM  type) and it does not prompt us?&lt;BR /&gt;&lt;BR /&gt;It should be noted that we use both the windows telnet and a software product entitled KEA-X(uses CDE) to connect to the server.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Greg</description>
      <pubDate>Wed, 27 Sep 2000 14:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448309#M10092</guid>
      <dc:creator>Greg Hale</dc:creator>
      <dc:date>2000-09-27T14:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448310#M10093</link>
      <description>the prompt for TERM type is almost certainly being executed in /etc/profile if all users see it.  In that case, you can insert a test for `logname` to identify the user in question and send him to a code branch that simply sets the TERM type without prompting.  i.e.&lt;BR /&gt;&lt;BR /&gt;if [ `logname` = "user" ]&lt;BR /&gt;then&lt;BR /&gt;export TERM=ansi&lt;BR /&gt;else&lt;BR /&gt;{ code for TERM prompt }&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;If only this user is affected, it is probably in his .profile, and you can simply remove the prompting and set the TERM explicitely.</description>
      <pubDate>Wed, 27 Sep 2000 14:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448310#M10093</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-09-27T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448311#M10094</link>
      <description>I'd take a look at the tset man page and use in conjuction with setting term type say in the .profile ?&lt;BR /&gt;&lt;BR /&gt;As to CDE check out the resource : *loginShell : True, for hpterm dtterm etc : see there man pages or do a forum search. If you set this say in $HOME/.Xdefaults you'll be sure entriesin .profile  are read when a user starts an xterm or dtterm via CDE's front panel etc ...</description>
      <pubDate>Wed, 27 Sep 2000 14:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448311#M10094</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-09-27T14:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448312#M10095</link>
      <description>Hi Greg,&lt;BR /&gt;&lt;BR /&gt;In the simplest case, assuming that the TERM variable is being set in the user's .profile, you'd make the following changes to force the TERM variable to be set to ansi without being prompted:&lt;BR /&gt;&lt;BR /&gt;From:&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;&lt;BR /&gt;To:&lt;BR /&gt;eval ` tset -s -Q -m ':ansi' `&lt;BR /&gt;&lt;BR /&gt;Note that the "?" is what causes tset to prompt for the terminal type.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Bruce Laughlin&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Sep 2000 14:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448312#M10095</guid>
      <dc:creator>Bruce Laughlin</dc:creator>
      <dc:date>2000-09-27T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448313#M10096</link>
      <description>I was able to find where the tset was setting the terminal type and make changes per everyone's replies.  &lt;BR /&gt;&lt;BR /&gt;Thanks to everyone for their help.&lt;BR /&gt;&lt;BR /&gt;Greg</description>
      <pubDate>Wed, 27 Sep 2000 14:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448313#M10096</guid>
      <dc:creator>Greg Hale</dc:creator>
      <dc:date>2000-09-27T14:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: setting TERM for login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448314#M10097</link>
      <description>Try insert this lines in your /etc/profile&lt;BR /&gt;&lt;BR /&gt;# /etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Be sure that VUE does not invoke tty commands&lt;BR /&gt;&lt;BR /&gt;if [ ! "$VUE" ]; then&lt;BR /&gt;&lt;BR /&gt;        # set term if it's not set&lt;BR /&gt;&lt;BR /&gt;        # configura terminal&lt;BR /&gt;&lt;BR /&gt;        echo "($TERM)"&lt;BR /&gt;&lt;BR /&gt; case "$TERM" in&lt;BR /&gt;  vt100|vt100vt100|vt100vt100vt100) TERM=vt100;;&lt;BR /&gt;  spike|spikespike|spikespikespike) TERM=spike;;&lt;BR /&gt;&lt;BR /&gt;  vt125|vt125vt125|vt125vt125vt125) TERM=winCE;;&lt;BR /&gt;  dec-vt125|dec-vt125dec-vt125|dec-vt125dec-vt125dec-vt125)&lt;BR /&gt;       TERM=winCE;;&lt;BR /&gt;&lt;BR /&gt;  dec-vt100|dec-vt100dec-vt100|dec-vt100dec-vt100dec-vt100)&lt;BR /&gt;       TERM=win95;;&lt;BR /&gt;  win95|win95win95|win95win95win95) TERM=win95;;&lt;BR /&gt;&lt;BR /&gt;  vt200|vt200vt200|vt200vt200vt200) TERM=vt220;;&lt;BR /&gt;  vt220|vt220vt220|vt220vt220vt220) TERM=vt220;;&lt;BR /&gt;&lt;BR /&gt;  dec-vt220|dec-vt220dec-vt220|dec-vt220dec-vt220dec-vt220)&lt;BR /&gt;       TERM=dec-vt220;;&lt;BR /&gt;&lt;BR /&gt;  vt320|vt320vt320|vt320vt320vt320) TERM=vt320;;&lt;BR /&gt;&lt;BR /&gt;  it100|it100it100|it100it100it100) TERM=it100;;&lt;BR /&gt;&lt;BR /&gt;  70096|7009670096|700967009670096) TERM=70096;;&lt;BR /&gt;&lt;BR /&gt;  sco|scosco|scoscosco)   TERM=sco;;&lt;BR /&gt;&lt;BR /&gt;  #ansi|ansiansi|ansiansiansi)  TERM=ansi;;&lt;BR /&gt;  ansi|ansiansi|ansiansiansi)  TERM=win95;;&lt;BR /&gt;  iris-ansi-net|iris-ansi-netiris-ansi-net)&lt;BR /&gt;       TERM=ansi;;&lt;BR /&gt;&lt;BR /&gt;  *)     TERM="";&lt;BR /&gt;       unset TERM;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; if [ -z "$TERM" -o "$TERM" = "unknown" ]&lt;BR /&gt;  then&lt;BR /&gt;  eval `ttytype -s -a`   # Pede identificacao do terminal&lt;BR /&gt;  #echo "[$TERM]"&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; if [ -z "$TERM" -o "$TERM" = "unknown" ] # senao Procura etcttytype&lt;BR /&gt;  then&lt;BR /&gt;  unset TERM&lt;BR /&gt;  eval ` tset -s -Q`&lt;BR /&gt;  #echo "{$TERM}"&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;# if [ -z "$TERM" -o "$TERM" = "unknown" ] #senao testa se Digibyte&lt;BR /&gt;#  then&lt;BR /&gt;#  unset TERM&lt;BR /&gt;#  echo "033[c"&lt;BR /&gt;#  eval `ttytype -s -a` # Pede identificacao do terminal&lt;BR /&gt;# fi&lt;BR /&gt;&lt;BR /&gt; if [ "$TERM" = "vt200" ]&lt;BR /&gt;  then&lt;BR /&gt;  TERM=vt220&lt;BR /&gt;&lt;BR /&gt;# elif [ "$TERM" = "dec-vt100" ]&lt;BR /&gt;#  then&lt;BR /&gt;#  TERM=win95&lt;BR /&gt;&lt;BR /&gt; elif [ "$TERM" = "vt125" -o "$TERM" = "dec-vt125" ]&lt;BR /&gt;  then&lt;BR /&gt;  TERM=winCE&lt;BR /&gt;&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; while [ -z "$TERM" -o "$TERM" = "unknown" ] # senao  pede no prompt&lt;BR /&gt;  do&lt;BR /&gt;  echo "nnnnNAO FOI POSSIVEL DETERMINAR O TIPO"&lt;BR /&gt;  echo " DE SEU TERMINAL, INFORME-O POR FAVOR."&lt;BR /&gt;&lt;BR /&gt;  echo "n 1. HyperTerm Win95/98  2. Terminal WinCE 80x12"&lt;BR /&gt;                echo   " 3. Spike ADD vt100     4. Terminal Win3.1"&lt;BR /&gt;  echo   " 5. Presentr tnvt220    6. Reflection vt320"&lt;BR /&gt;  echo   " 7. TermIt Psion        8. Freevt Psion"&lt;BR /&gt;  echo   " 9. IT100              10. HP 200LX"&lt;BR /&gt;  echo   "11. ansi               12. Anita VT220"&lt;BR /&gt;                echo "n99. outros"&lt;BR /&gt;  echo "n Opcao : c"&lt;BR /&gt;                read TERM&lt;BR /&gt;                case "$TERM" in&lt;BR /&gt;   1|8) TERM=win95;;&lt;BR /&gt;   2) TERM=winCE;;&lt;BR /&gt;   3|4|10) TERM=vt100;;&lt;BR /&gt;   5|12) TERM=vt220;;&lt;BR /&gt;   6) TERM=vt320;;&lt;BR /&gt;   7) TERM=termit;;&lt;BR /&gt;   9) TERM=it100;;&lt;BR /&gt;   11) TERM=ansi;;&lt;BR /&gt;   99) echo "nInforme o tipo :c";&lt;BR /&gt;    read TERM;;&lt;BR /&gt;   *) echo "nOpcao invalida";&lt;BR /&gt;    unset TERM;;&lt;BR /&gt;  esac&lt;BR /&gt; done&lt;BR /&gt;&lt;BR /&gt;# if [ -z "$TERM" -o "$TERM" = "unknown" ] # senao  pede no prompt&lt;BR /&gt;#  then&lt;BR /&gt;#  unset TERM&lt;BR /&gt;#  echo "nInforme o tipo do terminal ou tecle ENTER para aceitar it100n"&lt;BR /&gt;#  eval `tset -s -Q -m ':?it100'`&lt;BR /&gt;# fi&lt;BR /&gt;&lt;BR /&gt; echo ":$TERM:"&lt;BR /&gt; export TERM&lt;BR /&gt;&lt;BR /&gt; #if [ "$COLUMNS" = "1" ]&lt;BR /&gt; #  then&lt;BR /&gt; #  COLUMNS=80&lt;BR /&gt; #  LINES=24&lt;BR /&gt; #  export COLUMNS LINES&lt;BR /&gt; #fi&lt;BR /&gt;&lt;BR /&gt; if   [ "$TERM" = "winCE" ]&lt;BR /&gt;   then&lt;BR /&gt;   COLUMNS=80&lt;BR /&gt;   LINES=12&lt;BR /&gt;        elif [ "$TERM" = "symbol" ]&lt;BR /&gt;          then&lt;BR /&gt;   COLUMNS=20&lt;BR /&gt;   LINES=8&lt;BR /&gt;        else&lt;BR /&gt;   COLUMNS=80&lt;BR /&gt;   LINES=24&lt;BR /&gt; fi&lt;BR /&gt; export COLUMNS LINES&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fi                                           # if !VUE&lt;BR /&gt;&lt;BR /&gt;#   ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#========================== fim ==========================&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2000 15:21:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-term-for-login/m-p/2448314#M10097</guid>
      <dc:creator>Luiz Fernando de Andrad</dc:creator>
      <dc:date>2000-10-03T15:21:08Z</dc:date>
    </item>
  </channel>
</rss>

