1759782 Members
4041 Online
108889 Solutions
New Discussion юеВ

stty undef

 
SOLVED
Go to solution
Eric Malzahn
Occasional Advisor

stty undef

We have several control keys that reek havoc on our system. Can I set these to undefined with stty? Namely, these are the intr and stop functions. I know how to change them, but how do I change them to be ?

Thanks!
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: stty undef

Hi Eric:

See the man pages for 'stty':

# stty -isig

...will disable the checking of characters
against the special control characters INTR
and QUIT.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: stty undef

From man stty:
control-character c Set control-character to c, where control-
character is erase, kill, intr, quit, eof,
eol, eol2, werase, lnext, min,or time (min
and time are used with -icanon; see
termio(7)). For systems that support job
control, susp and dsusp characters can also
be set. For systems that support shell
layers (see shl(1)) swtch can also be set.
If c is preceded by an (escaped from the
shell) circumflex (^), the value used is the
corresponding control character (for example,
^d represents Ctrl-d); ^? is interpreted as
DEL and ^- is interpreted as undefined.

Looks like ^- should do the trick.

HTH,
Pete

Pete
Eric Malzahn
Occasional Advisor

Re: stty undef

Excellent work! Quick responses. I love this forum....