Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在命名 bash,但这个问题也适用于其他 linux shell。没有包含斜体字符是否有原因?
它与 . 无关bash。大多数终端应用程序根本不支持斜体文本。
bash
pangoterm是一个明显的例外:
pangoterm
如果要检查某些终端定义是否支持斜体(stim):
stim
$ for ti in $(find /lib/terminfo /usr/share/terminfo -type f -print); do t=${ti##*/}; if tput -T ${t} stim 2>/dev/null; then echo ${t} "supports italics"; fi; done