bin/unibits in unibits-2.0.0 vs bin/unibits in unibits-2.1.0

- old
+ new

@@ -31,11 +31,11 @@ if argv[:help] puts <<-HELP #{Paint["DESCRIPTION", :underline]} - Visualizes ASCII and variouus Unicode encodings in the terminal. + Visualizes Unicode and ASCII/single byte encodings in the terminal. #{Paint["USAGE", :underline]} #{Paint["unibits", :bold]} [options] data @@ -46,10 +46,17 @@ --version | | displays version of unibits --wide-ambiguous | | ambiguous characters #{Paint["ENCODINGS", :underline]} - #{Unibits::SUPPORTED_ENCODINGS.join(', ')} + #{Unibits::SUPPORTED_ENCODINGS.join(', ').scan(/.{,80}(?> |\z)/).join("\n ")} + #{Paint["COLOR CODING", :underline]} + + #{Paint["invalid", Unibits::COLORS[:invalid]]} + #{Paint["unassigned", Unibits::COLORS[:unassigned]]} + #{Paint["control", Unibits::COLORS[:control]]} + #{Paint["blank", Unibits::COLORS[:blank]]} + #{Paint["format", Unibits::COLORS[:format]]} #{Paint["STATS", :underline]} ( bytes / codepoints / glyphs / expected terminal width )