cl-ansi-text:启用ANSI颜色进行打印

时间:2024-06-17 18:59:40
【文件属性】:

文件名称:cl-ansi-text:启用ANSI颜色进行打印

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-17 18:59:40

lisp common-lisp colors ansi-colors CommonLisp

文本 因为您终端中的颜色很好。 安装: (ql:quickload :cl-ansi-text) 用法示例 - 主要的宏是with-color ,它创建了一个环境,在此环境中,所有放置在stream都会根据color进行color 。 颜色选项有几种形式。 关键字符号 支持 3 位颜色模式下的基本 8 种颜色,分别是:black 、 :red 、 :green 、 :yellow 、 :blue 、 :magenta 、 :cyan和:white 。 * (with-color (:red) (princ " Gets printed red... " ) (princ " and this too! " )) ; Gets printed red...and this too! ; => "and this too!" CL-COLORS:RGB和CL-COLO


【文件预览】:
cl-ansi-text-master
----README.md(5KB)
----.github()
--------workflows()
----test()
--------cl-ansi-text-test.lisp(5KB)
----cl-ansi-text.test.asd(373B)
----testscr.ros(442B)
----src()
--------define-colors.lisp(510B)
--------cl-ansi-text.lisp(8KB)
----cl-ansi-text.asd(492B)

网友评论