Simplify tput detection

This commit is contained in:
Markus Schirp 2014-08-11 13:52:36 +00:00
parent ee5f34e781
commit a0b9bfd246

View file

@ -19,12 +19,7 @@ module Mutant
UNAVAILABLE = new(false, nil, nil)
INSTANCE =
if save && restore && clean
new(true, reset + save, restore + clean)
else
UNAVAILABLE
end
INSTANCE = clean ? new(true, reset + save, restore + clean) : UNAVAILABLE
end # TPUT
end # CLI