的输出tput ed
为空,我不知道为什么。其他功能工作正常。输出中也ed
没有丢失,infocmp
所以 tput 应该匹配,对吗?
$ printf '%q' "$(tput ed)"
''
Run Code Online (Sandbox Code Playgroud)
$ printf '%q' "$(tput home)"
$'\033'\[H
Run Code Online (Sandbox Code Playgroud)
我在 Mac OS 10.14.6 和 iTerm2 上使用 zsh。术语=xterm-256color。