lib/dev/ui/formatter.rb in dev-ui-0.0.2 vs lib/dev/ui/formatter.rb in dev-ui-0.1.0
- old
+ new
@@ -6,17 +6,19 @@
module Dev
module UI
class Formatter
SGR_MAP = {
# presentational
- 'red' => '31',
- 'green' => '32',
- 'yellow' => '33',
- 'blue' => '34',
- 'magenta' => '35',
- 'cyan' => '36',
- 'bold' => '1',
- 'reset' => '0',
+ 'red' => '31',
+ 'green' => '32',
+ 'yellow' => '33',
+ 'blue' => '34',
+ 'magenta' => '35',
+ 'cyan' => '36',
+ 'bold' => '1',
+ 'italic' => '3',
+ 'underline' => '4',
+ 'reset' => '0',
# semantic
'error' => '31', # red
'success' => '32', # success
'warning' => '33', # yellow