Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FORGE-828: Support Strikethrough (ShellColor.STRIKEOUT)

  • Loading branch information...
commit ead7d150a11f9669c0dffa2b1e8e28afa17cf7da 1 parent 367a2af
@gastaldi authored
View
2  shell-api/src/main/java/org/jboss/forge/shell/ShellColor.java
@@ -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
}
View
4 shell/src/main/java/org/jboss/forge/shell/ShellImpl.java
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.