Add more colors to pebblisp.pbl

Plus a type comment on (time)
This commit is contained in:
Sage Vaillancourt 2022-03-30 16:53:53 -04:00 committed by Sage Vaillancourt
parent f2742e8411
commit b5f6a7d951
2 changed files with 10 additions and 0 deletions

View File

@ -1,10 +1,19 @@
(def black "")
(def red "") (def red "")
(def green "") (def green "")
(def yellow "")
(def blue "") (def blue "")
(def purple "")
(def cyan "")
(def white "")
(def bold "") (def bold "")
(def reset "") (def reset "")
(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)

View File

@ -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)."
); );