shell
List of symbols:
args, shell-exe, bg-color-rgb, fg-color-rgb, syntax-off, syntax-on, sys-command?
args
Usage: args
A vector of the argumants passed to the script. The first argument will be the name of the script.
No Examples
shell-exe
Usage: shell-exe
A string that contains the executable that is running the script.
No Examples
bg-color-rgb
Usage: (bg-color-rgb red-val green-val blue-val)
Set the background color to the desired rgb where each arg is an integer between 0 and 255 inclusive.
Example:
(test::assert-equal "\x1b[48;2;128;128;128m" (bg-color-rgb 128 128 128))
(test::assert-equal "\x1b[48;2;255;255;255m" (bg-color-rgb 255 255 255))
(test::assert-equal "\x1b[48;2;255;0;0m" (bg-color-rgb 255 0 0))
(test::assert-equal "\x1b[48;2;0;255;0m" (bg-color-rgb 0 255 0))
(test::assert-equal "\x1b[48;2;0;0;255m" (bg-color-rgb 0 0 255))
(test::assert-equal "\x1b[48;2;0;0;0m" (bg-color-rgb 0 0 0))
fg-color-rgb
Usage: (fg-color-rgb red-val green-val blue-val)
Set the foreground color to the desired rgb where each arg is an integer between 0 and 255 inclusive.
Example:
(test::assert-equal "\x1b[38;2;0;0;0m" (fg-color-rgb 0 0 0))
(test::assert-equal "\x1b[38;2;128;128;128m" (fg-color-rgb 128 128 128))
(test::assert-equal "\x1b[38;2;255;0;0m" (fg-color-rgb 255 0 0))
(test::assert-equal "\x1b[38;2;0;255;0m" (fg-color-rgb 0 255 0))
(test::assert-equal "\x1b[38;2;0;0;255m" (fg-color-rgb 0 0 255))
(test::assert-equal "\x1b[38;2;255;255;255m" (fg-color-rgb 255 255 255))
syntax-off
Usage: (syntax-off)
Turn off syntax highlighting at the repl.
No Examples
syntax-on
Usage: (syntax-on [SCRATCH] [SCRATCH] plev ch sys-syms token in-sys-command tok-command is-lisp paren-color my-sys-command? sys-command-color command-color prrawtoken prtoken paren-open paren-close whitespace in-quote out last-ch str-mapper-fn line-handler)
Turn on syntax highlighting at the repl.
No Examples
sys-command?
Usage: (sys-command? com)
True if the supplied command is a system command.
Example:
(test::assert-true (sys-command? "ls"))
(test::assert-false (sys-command? "rst-not-a-command-strsnt"))