Add more colors to pebblisp.pbl
Plus a type comment on (time)
This commit is contained in:
parent
f2742e8411
commit
b5f6a7d951
|
@ -1,10 +1,19 @@
|
||||||
|
(def black "[30m")
|
||||||
(def red "[31m")
|
(def red "[31m")
|
||||||
(def green "[32m")
|
(def green "[32m")
|
||||||
|
(def yellow "[33m")
|
||||||
(def blue "[34m")
|
(def blue "[34m")
|
||||||
|
(def purple "[35m")
|
||||||
|
(def cyan "[36m")
|
||||||
|
(def white "[37m")
|
||||||
|
|
||||||
(def bold "[1m")
|
(def bold "[1m")
|
||||||
(def reset "[0m")
|
(def reset "[0m")
|
||||||
|
|
||||||
(def nl (ch 10))
|
(def nl (ch 10))
|
||||||
|
|
||||||
|
(def reload (fn () (loadfile "/home/sagevaillancourt/.pebblisp.pbl")))
|
||||||
|
|
||||||
(def hour (fn (ti) (
|
(def hour (fn (ti) (
|
||||||
(def h (% ti's hour 12))
|
(def h (% ti's hour 12))
|
||||||
(if (= 0 h) 12 h)
|
(if (= 0 h) 12 h)
|
||||||
|
|
|
@ -246,6 +246,7 @@ tfn(getEnvVar, "env",
|
||||||
"(env HOME) => /home/sagevaillancourt"
|
"(env HOME) => /home/sagevaillancourt"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/// () => struct Time
|
||||||
fn(getTime, "time",
|
fn(getTime, "time",
|
||||||
"Get a struct of the current time with fields (minute hour sec)."
|
"Get a struct of the current time with fields (minute hour sec)."
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue