Hi,
At Fri, 26 Jan 2001 13:01:38 -0800 (PST),
Ienup Sung <[EMAIL PROTECTED]> wrote:
> All commercial CJK terminals and terminal emulators in my understanding
> work that way, i.e., a backspace will erase a character and depending on
> the what is the character being erase, it could be two screen columns or
> one screen column, and also some public domain terminal emulators like
> hanterm and so on if I remember correctly.
Really? We are discussing about 'backspace' code (0x08 in ASCII), not
about pressing 'backspace' key. (I agree pressing 'backspace' key should
erase one _character_. Thus, for example, tcsh-i18n issues two 'backspace'
code when 'backspace' key is pressed after double-width character.)
I checked hanterm and found that 'backspace' code erases one _column_
even after one doublewidth character. It is just as I expected. I also
checked the following terminals:
- Cxterm (big5, gb, ks, and jis mode)
- Rxvt (EUC mode)
- Eterm, Wterm and so on which are derive from Rxvt (EUC mode)
- Kterm
- Hanterm
- Kon2 (Kanji console, not X terminal emulator)
- Jfbterm (ISO-2022 console on Linux framebuffer)
- recent Xterm
- Japanese version of MS-DOS
- MS-DOS mode and MS-DOS prompt in Japanese MS-Windows
- Tera Term (telnet software for Windows)
- Telnet which is included in MS-Windows
- Japanese-enabled NCSA telnet (Macintosh version)
- N88-BASIC(86) (shipped with very old Japanese computer)
and found that my strong opinion (so strong that I wrote CJK people
would fall into panic if compatibility is abandoned) was confirmed. All
softwares which I used on these terminals in my life must be based on
the same policy because they worked well on the terminals.
If one 'backspace' code (0x08) erases one character (two columns) for
doublewidth character, many softwares (all doublewidth-enabled softwares)
such as Emacs will fail to work well.
Though your opinion (implementing two 'modes') might be useful, I
think it can bring confusion. Some softwares will be developed based
on one mode and others will be based on another mode. Users will have
to remember whether mode to be used for each software.
Please check again your 'commercial' softwares. Doesn't your shell
interpret one 'backspace'key pressing into two 'backspace' codes?
Doesn't your OS's line editor do such a thing? Both of them are
likely. Please check with C code printf("X\bY") where X is a
doublewidth character.
---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://surfchem0.riken.go.jp/~kubota/
"Introduction to I18N"
http://www.debian.org/doc/manuals/intro-i18n/
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/