Permalink
Browse files

FORGE-828: Support Strikethrough (ShellColor.STRIKEOUT)

  • Loading branch information...
1 parent 367a2af commit ead7d150a11f9669c0dffa2b1e8e28afa17cf7da @gastaldi committed Mar 18, 2013
@@ -12,5 +12,5 @@
*/
public enum ShellColor
{
- NONE, BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, YELLOW, WHITE, BOLD, ITALIC, UNDERLINE
+ NONE, BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, YELLOW, WHITE, BOLD, ITALIC, UNDERLINE, STRIKEOUT
}
@@ -1046,7 +1046,9 @@ public String renderColor(final ShellColor color, final String output)
case UNDERLINE:
ansi.a(Ansi.Attribute.UNDERLINE);
break;
-
+ case STRIKEOUT:
+ ansi.a(Ansi.Attribute.STRIKETHROUGH_ON);
+ break;
default:
return output;
}

0 comments on commit ead7d15

Please sign in to comment.