1830870 Members
2167 Online
110017 Solutions
New Discussion

stty and tty behavior

 
Andrew Dutton
Frequent Advisor

stty and tty behavior

I am not sure how this happened, but we did something that messed with the stty or tty settings. CTL-C no longer works, nor does backspace. stty sane and then trying to set erase does not work either. This is driving me crazy...

# stty
speed 38400 baud; -parity hupcl
min = 1; time = 1; erase = DEL;
swtch ;
brkint -inpck icrnl onlcr tab3
-iexten echo -echoe echok
-echoctl -echoke
# env
_=/usr/bin/csh
MANPATH=/usr/share/man:/usr/dt/man:/usr/local/man:/usr/openwin/man:/usr/man:/usr/admsnap/man:/opt/ignite/share/man:/opt/samba/man:/opt/resmon/share/man
SHLIB_PATH=/usr/lib:/usr/lib/X11R5:/opt/Navisphere/lib:/opt/java1.4/jre/lib/PA_RISC2.0/hotspot:/opt/java1.4/jre/lib/PA_RISC2.0
PATH=/usr/sbin:/usr/bin:/sbin:/usr/local/bin:/usr/ccs/bin:/usr/local/sbin:/opt/Navisphere/bin:/opt/java1.4/jre/bin:/usr/optio/eci77/bin/
COLUMNS=80
LOGNAME=root
ERASE=^H
OPTIO_HOME=/usr/optio/
SHELL=/sbin/sh
JAVA_HOME=/opt/java1.4
HOME=/
TERM=xterm
PWD=/
TZ=PST8PDT
LINES=31
autologout=4800

5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: stty and tty behavior

Hi:

Try using:

# stty sane

Regards!

...JRF...
Andrew Dutton
Frequent Advisor

Re: stty and tty behavior

Already try that... no change :-(
James R. Ferguson
Acclaimed Contributor

Re: stty and tty behavior

Hi (again) Andrew:

See the manpages for 'stty'. In particular note The EXAMPLES section. In your case, it appears that you need to specify the correct control sequences and redirect them to STDIN of '/dev/ttyconf'.

The Technical Knowledge Base ( # emr_na-c01007288-1 ) suggests that Ignite may have been the causitive culprit.

Regards!

...JRF...

#
Steven Schweda
Honored Contributor

Re: stty and tty behavior

> # stty
> [...]

"stty -a" might tell us more.

> CTL-C no longer works, nor does backspace.

> erase = DEL;

Apparently, Delete might (unless it's also
assigned to other actions).

> [...] trying to set erase does not work
> either.

Set how? It's hard to tell what you might be
doing wrong if you won't say what you did.

Also, "does not work" is not a useful
description of either what you did or what
happened when you did it, both of which may
be necessary data in a case like this.

> [...] -echoe [...]

"man stty" should explain why this might be a
poor choice for an xterm.
Dennis Handly
Acclaimed Contributor

Re: stty and tty behavior

Once you do "stty sane" you must put everything back:
stty intr ^c susp ^z erase ^h kill ^u