[ksh93-integration-discuss] Problems with stty erase <backspace>
Roland Mainz
roland.mainz at nrubsig.org
Mon Sep 4 21:59:49 PDT 2006
Roland Mainz wrote:
> Bernd Finger - Sun Germany wrote:
[snip]
> > When I then try to use stty erase <backspace> to set that key for erasing
> > characters left from the cursor, I get:
> > $ stty erase ^?
> > [1] + Stopped(SIGTTOU) stty erase X
> > where X is a funny symbol.
After reading
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4349169 I am
not sure whether this is actually a bug in ksh93... ;-/
BTW: A quick workaround (see
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4349169) may
be to add a dummy trap function for SIGTTOU (either put in ~/.kshrc or
/etc/ksh.kshrc (assuming the problem is only affecting interactive
shells)):
-- snip --
$ /usr/bin/stty erase $(printf "\x0a\x7f")
[1] + Stopped(SIGTTOU) /usr/bin/stty erase $(printf "\x0a\x7f")
$ trap '' TTOU
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
$ /usr/bin/stty erase $(printf "\x0a\x7f")
-- snip --
Maybe this is a regression in Solaris Nevada...
bash3.0 seems to avoid the problem via turning SIGTTOU "off" when
running jobs:
From
http://cvs.opensolaris.org/source/xref/sfw/usr/src/cmd/bash/bash-3.0/nojobs.c#620
-- snip --
614 void
615 ignore_tty_job_signals ()
616 {
617 #if defined (SIGTSTP)
618 set_signal_handler (SIGTSTP, SIG_IGN);
619 set_signal_handler (SIGTTIN, SIG_IGN);
620 set_signal_handler (SIGTTOU, SIG_IGN);
621 #endif
622 }
-- snip --
... but I have no clue what is the correct behaviour in this case...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
More information about the ksh93-integration-discuss
mailing list