Skip to content

Package io.github.qishr.cascara.common.util

Interface IStyle

java.lang.Object
        io.github.qishr.cascara.common.util.CommandLine.Help.Ansi.IStyle

All Known Implementing Classes:
    Style


public static interface IStyle

Defines the interface for an ANSI escape sequence.

Field Summary

Modifier and Type Field Description
public static final String CSI The Control Sequence Introducer (CSI) escape sequence .

Method Summary

Modifier and Type Method Description
public abstract String on() Returns the ANSI escape code for turning this style on.
public abstract String off() Returns the ANSI escape code for turning this style off.

Field Details

CSI

public static final String CSI

The Control Sequence Introducer (CSI) escape sequence .


Method Details

on

public abstract String on()

Returns the ANSI escape code for turning this style on.

Returns:

the ANSI escape code for turning this style on


off

public abstract String off()

Returns the ANSI escape code for turning this style off.

Returns:

the ANSI escape code for turning this style off