Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: xterm keeps forgetting stty options

On Apr 1,  5:00pm, Owen M. Astley wrote:
} Subject: xterm keeps forgetting stty options
} I don't know if this is a problem with zsh, but I can't track it down to
} any other particular program that I run (apart from xterm, and of course
} that doesn't help).
} Sometimes xterm/zsh forgets the settings for susp, quit etc.

Some implementations of pseudo-ttys read their initial terminal settings
from /dev/tty, which sometimes is the console, which (if you're running
X11) is probably not in any state to have its tty settings read.  Since
xterm uses a pty, it gets weird settings.

This is particularly a problem on various flavors of SunOS/Solaris, but
it can happen elsewhere as well.  It usually occurs when the window manager
or some other GUI-only application starts up the xterm, because if you
start an xterm by typing "xterm" at a shell prompt in -another- xterm, the
shell's xterm is /dev/tty of the new xterm and they'll both get the same

Xterm in X11R6 has resources for the stty settings it should use, precisely
because of this problem.  Check out the ttyModes resource.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Messages sorted by: Reverse Date, Date, Thread, Author