人的破碎输出

人的破碎输出

显然man开始以奇怪的方式显示一些文本。猜测它在某种程度上与未按预期渲染的转义序列有关。

我应该检查什么?我正在使用 MacOS / iterm2 / ohmyzsh。

例如,man ls输出如下:

N^HNA^HAM^HME^HE
     l^Hls^Hs -- list directory contents

S^HSY^HYN^HNO^HOP^HPS^HSI^HIS^HS
     l^Hls^Hs [-^H-A^HAB^HBC^HCF^HFG^HGH^HHL^HLO^HOP^HPR^HRS^HST^HTU^HUW^HW@^H@                                                        a^Hab^Hbc^Hcd^Hde^Hef^Hfg^Hgh^Hhi^Hik^Hkl^Hlm^Hmn^Hno^Hop^Hpq^Hqr^Hrs^Hst^Htu^Huw^Hwx^Hx1^H1%^H%] [_^Hf_^Hi_^Hl_^He _^H._^H.      _^H.]

D^HDE^HES^HSC^HCR^HRI^HIP^HPT^HTI^HIO^HON^HN
     For each operand that names a _^Hf_^Hi_^Hl_^He of a type other than directory, l^Hls^Hs displays its name as well as any
     requested, associated information.  For each operand that names a _^Hf_^Hi_^Hl_^He of type directory, l^Hls^Hs displays the       names
     of files contained within that directory, as well as any requested, associated information.
...

相关内容