<?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: stty in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129932#M152804</link>
    <description>When man termio, the message are too long. I'm not familar with stty and termio. Do you please tell where to define the stty defaut setting? Or any document deccription the stty default configuration?</description>
    <pubDate>Wed, 26 Nov 2003 23:06:24 GMT</pubDate>
    <dc:creator>j773303</dc:creator>
    <dc:date>2003-11-26T23:06:24Z</dc:date>
    <item>
      <title>stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129929#M152801</link>
      <description>"stty -a" can view interruput , del and so on setting. &lt;BR /&gt;Where can find the stty default configraion file?</description>
      <pubDate>Wed, 26 Nov 2003 22:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129929#M152801</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-11-26T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129930#M152802</link>
      <description>The stty defaults are in the driver and set when the port is first opened. The most important is that the baud rate is always 300 until overridden. And even more important, using stty on a closed serial port will cause the changes to be made only during the duration of stty. Once the port is no longer open, the defaults are set again. The defaults are documented in the termio man page.</description>
      <pubDate>Wed, 26 Nov 2003 22:31:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129930#M152802</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-11-26T22:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129931#M152803</link>
      <description>The best way you might want to change the stty parameters is in the .profile of the user or /etc/profile if you want for all users.</description>
      <pubDate>Wed, 26 Nov 2003 22:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129931#M152803</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-11-26T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129932#M152804</link>
      <description>When man termio, the message are too long. I'm not familar with stty and termio. Do you please tell where to define the stty defaut setting? Or any document deccription the stty default configuration?</description>
      <pubDate>Wed, 26 Nov 2003 23:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129932#M152804</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-11-26T23:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129933#M152805</link>
      <description>&lt;BR /&gt;HP-UX hpweb B.11.11 U 9000/803 (ta)&lt;BR /&gt;&lt;BR /&gt;login: root&lt;BR /&gt;Password:&lt;BR /&gt;Last   successful login for root: Wed Nov 26 11:11:50 CST6CDT 2003 on pts/tb&lt;BR /&gt;Last unsuccessful login for root: Wed Nov 26 10:59:35 CST6CDT 2003&lt;BR /&gt;Please wait...checking for disk quotas&lt;BR /&gt;(c)Copyright 1983-2000 Hewlett-Packard Co.,  All Rights Reserved.&lt;BR /&gt;(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California&lt;BR /&gt;(c)Copyright 1980, 1984, 1986 Novell, Inc.&lt;BR /&gt;(c)Copyright 1986-1992 Sun Microsystems, Inc.&lt;BR /&gt;(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology&lt;BR /&gt;(c)Copyright 1989-1993  The Open Software Foundation, Inc.&lt;BR /&gt;(c)Copyright 1986 Digital Equipment Corp.&lt;BR /&gt;(c)Copyright 1990 Motorola, Inc.&lt;BR /&gt;(c)Copyright 1990, 1991, 1992 Cornell University&lt;BR /&gt;(c)Copyright 1989-1991 The University of Maryland&lt;BR /&gt;(c)Copyright 1988 Carnegie Mellon University&lt;BR /&gt;(c)Copyright 1991-2000 Mentat Inc.&lt;BR /&gt;(c)Copyright 1996 Morning Star Technologies, Inc.&lt;BR /&gt;(c)Copyright 1996 Progressive Systems, Inc.&lt;BR /&gt;(c)Copyright 1991-2000 Isogon Corporation, All Rights Reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                           RESTRICTED RIGHTS LEGEND&lt;BR /&gt;Use, duplication, or disclosure by the U.S. Government is subject to&lt;BR /&gt;restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in&lt;BR /&gt;Technical Data and Computer Software clause in DFARS 252.227-7013.&lt;BR /&gt;&lt;BR /&gt;                           Hewlett-Packard Company&lt;BR /&gt;                           3000 Hanover Street&lt;BR /&gt;                           Palo Alto, CA 94304 U.S.A.&lt;BR /&gt;&lt;BR /&gt;Rights for non-DOD U.S. Government Departments and Agencies are as set&lt;BR /&gt;forth in FAR 52.227-19(c)(1,2).&lt;BR /&gt;You have mail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Value of TERM has been set to "ansi".&lt;BR /&gt;WARNING:  YOU ARE SUPERUSER !!&lt;BR /&gt;&lt;BR /&gt;Thu Nov 27 06:05:05 2003:/root&lt;BR /&gt;[2806#] stty -a&lt;BR /&gt;speed 9600 baud; line = 0;&lt;BR /&gt;rows = 25; columns = 80&lt;BR /&gt;min = 4; time = 0;&lt;BR /&gt;intr = ^C; quit = ^\; erase = ^H; kill = ^U&lt;BR /&gt;eof = ^D; eol = ^@; eol2 &lt;UNDEF&gt;; swtch &lt;UNDEF&gt;&lt;BR /&gt;stop = ^S; start = ^Q; susp = ^Z; dsusp &lt;UNDEF&gt;&lt;BR /&gt;werase &lt;UNDEF&gt;; lnext &lt;UNDEF&gt;&lt;BR /&gt;parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts&lt;BR /&gt;-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc&lt;BR /&gt;ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak&lt;BR /&gt;isig icanon -iexten -xcase echo echoe echok -echonl -noflsh&lt;BR /&gt;-echoctl -echoprt -echoke -flusho -pendin&lt;BR /&gt;opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop&lt;BR /&gt;Thu Nov 27 06:05:05 2003:/root&lt;BR /&gt;[2807#]&lt;BR /&gt;&lt;BR /&gt;These are the defaults with one acception. Ctrl-Z stops the current task and gives me the chance to background it if I wish. Everything else is vanilla HP-UX.&lt;BR /&gt;&lt;BR /&gt;Off a 11.11 System, 32 bit pretty agressively patched.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;</description>
      <pubDate>Thu, 27 Nov 2003 00:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129933#M152805</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-27T00:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129934#M152806</link>
      <description>Hi Steven,&lt;BR /&gt;   What did you mean? Reboot the machine and type stty -a???</description>
      <pubDate>Thu, 27 Nov 2003 00:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129934#M152806</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-11-27T00:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129935#M152807</link>
      <description>To view the defaults, temporarily move /etc/profile out of the way and login as a user without a .profile&lt;BR /&gt;Or replace /bin/stty by a script&lt;BR /&gt;Or do a stty -a as the first line in /etc/profile to view the settings.&lt;BR /&gt;&lt;BR /&gt;It might be interesting to do this test on several connections (xterm -ls, rlogin, ssh, console, ...)&lt;BR /&gt;&lt;BR /&gt;As for the default speed: it could very well be that 300 baud is the default, but as long as you have a getty running, the speed is set by getty before login is started.</description>
      <pubDate>Thu, 27 Nov 2003 02:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129935#M152807</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-27T02:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129936#M152808</link>
      <description>It is worth noting that for the console and serially attached terminals, and possibly even other terminals (I'm not sure) the stty settings that apply to the communication is set by "login" when it reads /etc/gettydefs.</description>
      <pubDate>Thu, 27 Nov 2003 02:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129936#M152808</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-27T02:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: stty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129937#M152809</link>
      <description>Serial devices that have login capability (ie, not printers, etc) are indeed controlled by getty and the settings start with /etc/gettydefs. For the console and all login-enabled serial port, getty is started in /etc/inittab. NOTE: The default settings for terminals is more than 20 years out of date!!! The terminal settings in /etc/gettydefs (except for the console) are 9600 7bits, even parity--which is why modems and terminals seem to behave strangely using the defaults. The "H" entry in /etc/gettydefs is a good starting point for setting up hardwaired login terminals, and for modems, you can use the various entries in gettydefs except change CS7 to CS8 and decide if you want the BREAK key to change baud rates for you.&lt;BR /&gt; &lt;BR /&gt;Now all the above refers to login terminals. A port that is connected to a printer or other device that is not controlled by getty will use the driver defaults which can be seen by using:&lt;BR /&gt; &lt;BR /&gt;stty -a &amp;lt; /dev/tty0p2&lt;BR /&gt; &lt;BR /&gt;or whatever port you want to check. Note that if the port is already open. HOWEVER: starting with recent patches to 11.0 and 11.11, a new device file called /dev/ttyconf now exists and it can be used to set new driver defaults for ALL terminal ports, including pty devices used in telnet connections. This is especially helpful for logins where LOGIN and PASSWORD will have the defaults are:&lt;BR /&gt; &lt;BR /&gt;intr = DEL; erase = #; kill = @&lt;BR /&gt; &lt;BR /&gt;That's why backspace doesn't work for login and password (you have to use # as the erase character). However, if you type this command:&lt;BR /&gt; &lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D" &amp;lt; /dev/ttyconf&lt;BR /&gt; &lt;BR /&gt;And now all tty and pty devices will have the 'expected' settings. NOTE: the /dev/console device and any alread-opened devices will not inherit the new login settings until a reboot.</description>
      <pubDate>Fri, 28 Nov 2003 08:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty/m-p/3129937#M152809</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-11-28T08:50:37Z</dc:date>
    </item>
  </channel>
</rss>

