Re: gnome-terminal utf8 環境下的字寬
※ 引述《rafan.bbs@Deer.twbbs.org (o_O)》之銘言:
> ※ 引述《Edward.bbs@bbs.sayya.org (蒙古大夫 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
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章