ChromaTerm:将输出着色到终端

时间:2021-05-06 19:25:48
【文件属性】:
文件名称:ChromaTerm:将输出着色到终端
文件大小:200KB
文件格式:ZIP
更新时间:2021-05-06 19:25:48
color regex highlight Python 色度词 ChromaTerm( ct )是一个Python脚本,它使用正则表达式将输出着色到终端。 它可与交互式程序(如SSH)一起使用。 安装 pip3 install chromaterm 用法 想想ct像grep ; 只是将数据传输到其中,就像ssh somewhere | ct ssh somewhere | ct 。 echo " Jul 14 12:28:19 Message from 1.2.3.4: Completed successfully " | ct 如果要始终突出显示程序,则可以在.bash_profile设置一个函数。 例如,这是ssh的一个: ssh () { /usr/bin/ssh " $@ " | ct ; } 有些程序通过管道传输时的行为有所不同,例如less 。 在这种情况下, ct可以通过生成程序来隐藏管道。 您只需要在命令前加上ct
【文件预览】:
ChromaTerm-master
----.gitignore(50B)
----README.md(3KB)
----.github()
--------workflows()
--------CODEOWNERS(32B)
--------ISSUE_TEMPLATE()
--------junos-show-interface.png(186KB)
----tests()
--------test__main__.py(23KB)
--------test___init__.py(41KB)
--------__init__.py(122B)
--------test_default_config.py(4KB)
----LICENSE(1KB)
----contrib()
--------rules()
----setup.py(941B)
----.travis.yml(279B)
----chromaterm()
--------default_config.py(4KB)
--------__init__.py(21KB)
--------__main__.py(14KB)

网友评论