Stefan Baums wrote on 2001-05-26 11:34 UTC:
> On a related note, Alt + Backspace no longer deletes the preceding
> word in a UTF-8 xterm: it has no effect at all. What can be done
> about that?
Use ESC Backspace instead, which works fine.
There is no real standard on what to to with the Alt key on a terminal
emulator. Two conventions had emerged: one is that 128 is added to the
ASCII code if Alt is pressed, the other is that the character is
prefixed with ESC.
The adding-128-technique is completely dead today since we moved from
ASCII to 8-bit codes. Your editor (readline?) should not accept bytes
with the MSB set as Alt-something editing command codes, certainly not
in any locale with 8-bit encoding. So all you could ask for is that
Alt-BS sends out ESC BS.
My xterm here sends 0xff (DEL + 0x80 = '�' in ISO 8859-1) if I press
Alt-BS. May be, your shell has finally been fixed to correctly not
accept an � character as a word delete command when you use an 8-bit
charmap. That would be a good thing then.
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/