Browse code

Add a 'clear' command

Joseph Weston authored on 11/12/2021 21:31:23
Showing 1 changed files
... ...
@@ -24,6 +24,7 @@
24 24
   ; TODO: Replace with the 'match' macro
25 25
   (cond
26 26
    (empty? cmdline) db
27
+   (= "clear" cmdline) (assoc-in db [:cmdline :history] [])
27 28
    (= "Open Game License" cmdline) (append-history (db :license))
28 29
    (= "spells" cmdline) (append-history (vals spells))
29 30
    (= "items" cmdline) (append-history (vals equipment))