The 'stty erase ^H' fixed it. Why is '^?' the default erase and
not this?
The default erase is not '^?', it's just displayed like that
because the shell on the other side doesn't understand it. There
are about as many different "standards" out there as there are
combinations of shells and OSes, so it is fairly predictable that
if you throw a new system in the mix you will have to modify some
things on either the source or the target to get the same behaviour
you were used to before.
Actually, '^?' indicates the delete char code ( octal 0177 )
and it's an exception to the notational convention that ^(some char)
means Control-(some char) and means the code for that character
with the 7th bit cleared. i.e.
^G = bel = 007 ( G = 0107 )
^M = cr = 015 ( M = 0115 )
^H = bs = 010 ( H = 0110 )
Although, if you interpret the convention to mean invert-bit-7
then it fits: ? = 0077 | ^? = 0177
While ASCII character codes for delete (^?) and backspace (^H) are
pretty universal,
the *meaning* of those codes to an editor or some other software are
not.
Some editors like to interpret backspace as delete-char-before-
cursor, and
delete as delete-character-at-(or-before)-cursor.
'stty erase' sets the terminal drivers semantic mapping of which key
is the
one to remove a mistyped character.
-- Steve M.
It's also quite likely that some other things (which you may or may
not use) now do not work as designed anymore because they actually
expected the other code.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-userlevel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-userlevel/sdm7g%
40mac.com