Skip to content

Commit

Permalink
add constant to restore text attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Cella <rob.uniud@gmail.com>
  • Loading branch information
rob93c authored and ceki committed May 1, 2023
1 parent ec508c4 commit b8e0936
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class ANSIConstants {
public final static String ESC_START = "\033[";
public final static String ESC_END = "m";
public final static String BOLD = "1;";
public final static String RESET = "0;";

public final static String BLACK_FG = "30";
public final static String RED_FG = "31";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
abstract public class ForegroundCompositeConverterBase<E> extends CompositeConverter<E> {

final private static String SET_DEFAULT_COLOR = ESC_START + "0;" + DEFAULT_FG + ESC_END;
final private static String SET_DEFAULT_COLOR = ESC_START + RESET + DEFAULT_FG + ESC_END;

@Override
protected String transform(E event, String in) {
Expand Down

0 comments on commit b8e0936

Please sign in to comment.