gpt4 book ai didi

ubuntu - zsh中的有线字符

转载 作者:行者123 更新时间:2023-12-04 19:18:31 25 4
gpt4 key购买 nike

我对 有疑问zsh 在非英语的命令行
但是在输入键后语言显示正确的单词,在 OSX 上尝试也有同样的问题。

~   
❯ สว<0e31>สด<0e35>
สวัสดี
zsh: command not found: สวัสดี

我正在检查语言环境,一切都是 utf8
locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

并检查是否有任何字体,它有同样的问题。
我用 zsh 版本 5.0.2 和 哦,我的-zh

最佳答案

你可以做setopt combiningchars .

COMBINING_CHARS

Assume that the terminal displays combining characters correctly. Specifically, if a base alphanumeric character is followed by one or more zero-width punctuation characters, assume that the zero-width characters will be displayed as modifications to the base character within the same width. Not all terminals handle this. If this option is not set, zero-width characters are displayed separately with special mark-up.

-- zshoptions(1) COMBINING_CHARS

关于ubuntu - zsh中的有线字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28734396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com