<?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 the default term type on tty ports in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522484#M23787</link>
    <description>This is not a driver or kernel issue.  TERM is an environment variable that helps shells and applications handle the hundreds of different terminals and emulators.&lt;BR /&gt;&lt;BR /&gt;Under normal network logins (telnet), the terminal type is negotiated with the telnet daemon and the originator. Some telnet code fails to provide a terminal value and sometimes telnetd will set TERM=unknown. No problem as /etc/profile should be coded to handle this situation:&lt;BR /&gt;&lt;BR /&gt;     if [  "$TERM" = "$UNSET"          -o "$TERM" = "unknown"         -o "$TERM" = "dialup"          -o "$TERM" = "network" ]&lt;BR /&gt;     then&lt;BR /&gt;        eval $(/sbin/ttytype -s)&lt;BR /&gt;     fi&lt;BR /&gt;&lt;BR /&gt;ttytype will attempt to guess what type of terminal is being used.  It does this by sending common query codes and if no response, tries others. If all your terminals and/or emulators are truly dumb then you can hardcode the TERM value in /etc/profile with just:&lt;BR /&gt;&lt;BR /&gt;export TERM=vt100&lt;BR /&gt;&lt;BR /&gt;Now I indicated this works on 'normal' Unix logins through modems, terminals and telnet. Tools like remsh or Xwindows bypass these tests and you'll need to accomodate them differently.</description>
    <pubDate>Sat, 28 Apr 2001 00:48:43 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2001-04-28T00:48:43Z</dc:date>
    <item>
      <title>Setting the default term type on tty ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522481#M23784</link>
      <description>System: HP-UX 11.0 on L2000 New Installation&lt;BR /&gt;&lt;BR /&gt;I need to set the default terminal type for serial (tty) connections to vt100. The snippet below  from the man pages on getty says:&lt;BR /&gt;____________&lt;BR /&gt;getty(1M)&lt;BR /&gt;/usr/sbin/getty [-h] [-t timeout] line [speed [type [linedesc]]] &lt;BR /&gt;type        &lt;BR /&gt;The default terminal is none; i.e., any crt or normal terminal unknown to the system.  Also, for terminal type to have any meaning, the virtual terminal handlers must be compiled into the operating system.  They are available, but not compiled in the default condition. &lt;BR /&gt;____________&lt;BR /&gt;&lt;BR /&gt;How do compile them into the "operating system?" I assume this means a driver in the kernel. What would the name be?&lt;BR /&gt;&lt;BR /&gt;Is there another way for me to make sure that terminal connections are vt100 by default?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-Brad&lt;BR /&gt;&lt;BR /&gt;Will give just do points.</description>
      <pubDate>Fri, 27 Apr 2001 20:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522481#M23784</guid>
      <dc:creator>Brad Andriese</dc:creator>
      <dc:date>2001-04-27T20:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the default term type on tty ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522482#M23785</link>
      <description>Hi Brad.&lt;BR /&gt;Term type can be set in .profile and exported.&lt;BR /&gt;e.g. TERM=vt100; export $TERM&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Brad&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Apr 2001 20:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522482#M23785</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2001-04-27T20:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the default term type on tty ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522483#M23786</link>
      <description>The term variable is already set in the .profile using the folowing:&lt;BR /&gt;&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then                                              eval ` tset -s -Q -m ':?vt100'`        else                                      &lt;BR /&gt;   eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;However, when someone logs in via a terminal (i.e.: Telnet is ok) durring login the system says "terminal type unknown." Which makes me think I need to tell the system, not the users session what the default terminal type should be. Also, getty (above) talkes about loading things into the kernel. Something tells me there is more to this than just setting "TERM," but I don't know what driver to load or exactly how to go about fixing this problem.</description>
      <pubDate>Fri, 27 Apr 2001 21:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522483#M23786</guid>
      <dc:creator>Brad Andriese</dc:creator>
      <dc:date>2001-04-27T21:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the default term type on tty ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522484#M23787</link>
      <description>This is not a driver or kernel issue.  TERM is an environment variable that helps shells and applications handle the hundreds of different terminals and emulators.&lt;BR /&gt;&lt;BR /&gt;Under normal network logins (telnet), the terminal type is negotiated with the telnet daemon and the originator. Some telnet code fails to provide a terminal value and sometimes telnetd will set TERM=unknown. No problem as /etc/profile should be coded to handle this situation:&lt;BR /&gt;&lt;BR /&gt;     if [  "$TERM" = "$UNSET"          -o "$TERM" = "unknown"         -o "$TERM" = "dialup"          -o "$TERM" = "network" ]&lt;BR /&gt;     then&lt;BR /&gt;        eval $(/sbin/ttytype -s)&lt;BR /&gt;     fi&lt;BR /&gt;&lt;BR /&gt;ttytype will attempt to guess what type of terminal is being used.  It does this by sending common query codes and if no response, tries others. If all your terminals and/or emulators are truly dumb then you can hardcode the TERM value in /etc/profile with just:&lt;BR /&gt;&lt;BR /&gt;export TERM=vt100&lt;BR /&gt;&lt;BR /&gt;Now I indicated this works on 'normal' Unix logins through modems, terminals and telnet. Tools like remsh or Xwindows bypass these tests and you'll need to accomodate them differently.</description>
      <pubDate>Sat, 28 Apr 2001 00:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522484#M23787</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-04-28T00:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the default term type on tty ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522485#M23788</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just a few words to add to previous answers that relate to more general case. Especially Bill' answer is full.&lt;BR /&gt;But in Bradd's question serial terminals are mentioned.&lt;BR /&gt;In the previous versions of HP-UX it could be possible to connect type of terminal with a serial line in a file&lt;BR /&gt;/etc/ttytype. Although i didn't try it in HP-UX11 I hope this works as previously. Syntax of /etc/ttytype is simple, in the first field type of terminal should be put and serial line in the second field.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Sat, 28 Apr 2001 12:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-the-default-term-type-on-tty-ports/m-p/2522485#M23788</guid>
      <dc:creator>Wieslaw Krajewski</dc:creator>
      <dc:date>2001-04-28T12:28:34Z</dc:date>
    </item>
  </channel>
</rss>

