Hi,

At Fri, 20 Sep 2002 14:24:06 +0700,
Art - Arthit Suriyawongkul wrote:

> I +1 to Theppitak's proposal to fix BACKSPACE behavior for Thai text.
> 
> (from: erases "the whole combined cell" in single BACKSPACE
>   to  : erases only last character typed in single BACKSPACE)

I think this choice is shell's responsibility, not terminal.
This is because now "single BACKSPACE" means keyboard typing,
not submitting of 0x08 to tty.

Submitting of 0x08 to tty should *always* move cursor left
one column, regardless of what character is written on the
left column.  This is because terminals cannot tell the
context of accepted 0x08.  Many softwares uses 0x08 to
move one column left.

For example, even if the left column is doublewidth character,
0x08 moves *one* column and the cursor will be located at the
right half of the doublewidth character.  Bash-2.05b is aware
of this behavior and, when BACKSPACE key is pressed after
doublewidth character, bash issues 0x08 0x08 0x20 0x20 0x08 0x08 
to the tty to erase the whole doublewidth character.  (It is
more complex in real, to handle line folding.)

---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/
"Introduction to I18N"  http://www.debian.org/doc/manuals/intro-i18n/
_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to