Tcsh and xon/xoff

Scott Hannahs sth at slipknot.mit.edu
Thu Oct 11 08:31:54 AEST 1990


I am running the tcsh (at least an improvement over csh) and
using the latest version from ftp.brl.mil (version 5.18 patch level 0)
with IRIX 3.3.1 on a PI.

My problem which I am hoping some kind soul has dealt with since I
don't have csh source code and cannot remake tcsh is that the
Xon/Xoff characters are switched.

I have tried "bind tty-start-output ^Q" and "bind tty-stop-output ^S"
both interactively and in the .cshrc file.  I think the problem is that
tcsh resets the terminal characteristics every command prompt and
does not know where in the termio structure SGI hides the CSTART
and CSTOP characters.  They are in the region that SGI defines as their
own extensions to SYSV.  A "stty start ^Q stop ^S" command only
affects the terminal until the command prompt, thus

% stty start ^Q stop ^S ; stty -a

will print the correct configuration while
% stty start ^Q stop ^S
% stty -a
will not.  Has anyone fixed tcsh to hand this weirdness.  It is not
a problem for the console, but using the serial lines with our whiz-bang
digital phones and file transfer programs causes problems.

Any and all help is appreciated.
Scott Hannahs
hannahs at slipknot.mit.edu



More information about the Comp.sys.sgi mailing list