看板FreeBSD
标 题Re: gnome-terminal utf8 环境下的字宽
发信站SayYA 资讯站 (Mon Apr 30 12:17:35 2007)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (o_O)》之铭言:
> ※ 引述《[email protected] (蒙古大夫 2.0)》之铭言:
> > Thanks.
> > 好像会有点怪怪的,例如:
> > http://edt1023.sayya.org/tmp/ambichars.u8
> > 把这些内容放在命令列,左右头尾移动游标就常不会到位。
> > 可和 [g]vim 并 set ambiwidth=double,来比较一下。
> Hmm.. report 给 vte maintainer 吧? 可能刚加的新功能没完全弄好 :p
好像是目前实作的问题?
<README>
* What's weird?
- Relative cursor motion is weird. When the character to the left of the
cursor is a 3-byte UTF-8 sequence for a character which occupies two
columns on the screen, three things may happen when the application sends
the "cursor left" control sequence:
* the cursor moves two columns (one character) to the left
This eliminates the possibility of moving the cursor into the middle of
a multi-column character.
* the cursor moves one column (one half-character) to the left
This makes determining where the cursor is easier, but requires the
application to emit a control sequence more than once for multi-column
characters.
* the cursor moves one "byte" to the left
This is what most OS kernels do when reading input using "cat". It
happens to work for a few locales, and is otherwise just plain broken.
Currently VTE follows the second convention.
</README>
英文太烂,等摸到一些头绪後再说。:)
--
道隐於小成,言隐於荣华。(庄子.齐物论)
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: edt1023.sayya.org