-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
110 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
;;; lisp/_color.lisp --- Color module | ||
;;; Commentary: | ||
;;; Code: | ||
|
||
(defvar qob-enable-color t | ||
"Set to nil to disable color.") | ||
|
||
(defun qob-color-code (color) | ||
"Return the ANSI color code by COLOR." | ||
(ecase color | ||
(:gray "38;5;8") | ||
(:black 30) | ||
(:red 31) | ||
(:green 32) | ||
(:yellow 33) | ||
(:blue 34) | ||
(:magenta 35) | ||
(:cyan 36) | ||
(:white 37))) | ||
|
||
(defun qob-color-it (color str) | ||
"COLOR the STR." | ||
(check-type color keyword) | ||
(if qob-enable-color | ||
(format nil "~C[~Am~A~C[0m" | ||
#\Esc (qob-color-code color) str #\Esc) | ||
str)) | ||
|
||
(defun qob-ansi-red (str) | ||
"Color STR in red." | ||
(qob-color-it :red str)) | ||
|
||
(defun qob-ansi-green (str) | ||
"Color STR in green." | ||
(qob-color-it :green str)) | ||
|
||
(defun qob-ansi-yellow (str) | ||
"Color STR in yellow." | ||
(qob-color-it :yellow str)) | ||
|
||
(defun qob-ansi-cyan (str) | ||
"Color STR in cyan." | ||
(qob-color-it :cyan str)) | ||
|
||
;;; End of lisp/_color.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
;;;; lisp/core/install-deps.lisp --- Install dependent systems | ||
|
||
;;; Commentary | ||
;; | ||
;; Command use to install dependent systems, | ||
;; | ||
;; $ qob install-deps | ||
;; | ||
|
||
;;; Code | ||
|
||
(qob-init-ql) | ||
|
||
|
||
|
||
;;; End of lisp/core/install-deps.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters