: sparc10, running solaris 2.5.1 (newly acquired). the escape key
: is not recognized as a break, it merely puts out the screen image
: there must be some place where the key mappings are doing this.
: where? how do i fix it, either in command mode or through admintool?
Moving up in the world from an old NCR? (Where the standard ctrl-c break
was mapped to the escape key). While I strongly encourage you to just
change your habits to using control-c for 'break', you can certainly
make the escape key work.
What you are actually doing is mapping a non-alphanumeric character to a
tty function. When your terminal tries to print an 'escape' character to
the screen (in fact, if you hold down control and hit [ it will generate
an 'escape' just as if you hit escape.) (Same thing as when 'return' gets
turned into ^m.)
if you do a 'stty -a' it will list all of your tty settings. The last lines
will look something like:
erase kill werase rprnt flush lnext susp intr quit stop eof
^H ^U ^? ^R ^O ^V ^Z/^Y ^C ^\ ^S/^Q ^D
You can use the command 'stty intr ^[' to give the escape key the behavior
of a control-c (though using VI will then become a real pain.. :) )
You can use the same mechanism to change what key you use to backspace
p.s. putting the stty command in your .profile (or whatever shell init file
you choose) will save you typing it in each session.
Use the escape key when typing the stty command in, rather than the literal
carrat (^) followed by an open square bracket ([) (if this gives you problems,
you can type control-v esc which will cause the escape to not be interpreted).
| This isn't hell, but I can see it from here. | "Cover Me; I'm |