Enum Class Attributes.OutputFlag

java.lang.Object
java.lang.Enum<Attributes.OutputFlag>
org.jline.terminal.Attributes.OutputFlag
All Implemented Interfaces:
Serializable, Comparable<Attributes.OutputFlag>, Constable
Enclosing class:
Attributes

public static enum Attributes.OutputFlag extends Enum<Attributes.OutputFlag>
Output flags that control how terminal output is processed.

Output flags determine how the terminal processes output characters before they are sent to the terminal device. These flags control aspects such as newline translation, tab expansion, and other output processing features.

Common output flags include:

  • OPOST - Enable output processing (required for other output flags to take effect)
  • ONLCR - Map NL to CR-NL on output (convert newlines to carriage return + newline)
  • OCRNL - Map CR to NL on output (convert carriage returns to newlines)
  • OXTABS - Expand tabs to spaces on output

Output flags can be accessed and modified using methods like Attributes.getOutputFlag(OutputFlag), Attributes.setOutputFlag(OutputFlag, boolean), and Attributes.setOutputFlags(EnumSet).

See Also: