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 中运行ls --color=auto在我的机器上将目录显示为蓝色。然而,stdout (inshell "ls --color=auto" empty)在 Turtle 中运行会丢失所有所说的颜色数据。有没有办法保存着色数据?
ls --color=auto
stdout (inshell "ls --color=auto" empty)
“auto”部分意味着 ls 仅在知道 stdout 是“真实”终端时才会使用颜色。如果您更改为“始终”,那么它将始终使用颜色:
stdout (inshell "ls --color=always" empty)