Skip to content

Commit

Permalink
Suppress errors if the 'tput' command doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Apr 8, 2015
1 parent 02151db commit 69fe093
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.6.1 (2015-04-08)

* Suppress errors if the 'tput' command doesn't exist

## 0.6.0 (2015-04-05)

* Move test reporters to their own directory
Expand Down
2 changes: 1 addition & 1 deletion module.l
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[de MODULE_INFO
("name" "unit")
("version" "0.6.0")
("version" "0.6.1")
("summary" "Unit Testing framework for PicoLisp")
("source" "https://github.com/aw/picolisp-unit.git")
("author" "Alexander Williams")
Expand Down
9 changes: 5 additions & 4 deletions unit.l
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@

# reporter
[de colour (Colour)
(cond ((assoc (lowc Colour) *Colours) (call 'tput "setaf" (cdr @)))
((= (lowc Colour) "bold") (call 'tput "bold"))
(T (call 'tput "sgr0")) )
NIL ]
(err "/dev/null"
(cond ((assoc (lowc Colour) *Colours) (call 'tput "setaf" (cdr @)))
((= (lowc Colour) "bold") (call 'tput "bold"))
(T (call 'tput "sgr0")) )
NIL ]

[de plural? (String)
(when (not (= (length String) 1)) "s") ]
Expand Down

0 comments on commit 69fe093

Please sign in to comment.