new test file

This commit is contained in:
vaclavt
2022-01-10 20:28:50 +01:00
parent c10d1aef34
commit 948e50d0d7

18
tests/test_term.lsp Normal file
View File

@@ -0,0 +1,18 @@
(include "/usr/local/var/mlisp/terminal.lsp")
(print (term-red "red text"))
(print (term-green "green text"))
(print (term-yellow "yellow text"))
(print (term-blue "blue text"))
(print (term-magenta "magenta text"))
(print (term-cyan "cyan text"))
(print (term-white "white text"))
(print (term-bold "bold text"))
(print (term-underline "underline text"))
(print "normal text")
(print (+ (term-red (sprintf "%.2f" (list 1.11))) " "
(term-green (sprintf "%.2f" (list 1.11))) " "
(term-blue (sprintf "%.2f" (list 1.11))) " "
(term-yellow (sprintf "%.2f" (list 1.11))) " "
))