带有 unix 命令“watch"的颜色? [英] Colors with unix command "watch"?

查看:30
本文介绍了带有 unix 命令“watch"的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用显示颜色的一些命令,但是当我将它们与手表一起使用时,颜色消失了:

Some commands that I use display colors, but when I use them with watch the colors disappears:

watch -n 1 node file.js

是否有可能以某种方式恢复颜色?

Is it possible to have the colors back on somehow?

推荐答案

一些较新版本的 watch 现在支持颜色.

Some newer versions of watch now support color.

例如watch --color ls -ahl --color.

相关.

这篇关于带有 unix 命令“watch"的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆