APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.jline.terminal.impl.ffm

pack-priv Class WindowsAnsiWriter

extends AnsiWriter
Class Inheritance
Imports
java.io.IOException, .Writer, jdk.internal.org.jline.utils.AnsiWriter, .Colors

Field Summary

Modifier and TypeField and Description
private static final short[]
private static final short[]
private static final short
private static final short
private static final short
private static final short
private static final short
private boolean
private static final MemorySegment
private static final short
private static final short
private static final short
private static final short
private static final short
private final Kernel32.CONSOLE_SCREEN_BUFFER_INFO
private boolean
private final short
private short
private short
private boolean
Inherited from jdk.internal.org.jline.utils.AnsiWriter:
ATTRIBUTE_BLINK_FASTATTRIBUTE_BLINK_OFFATTRIBUTE_BLINK_SLOWATTRIBUTE_CONCEAL_OFFATTRIBUTE_CONCEAL_ONATTRIBUTE_INTENSITY_BOLDATTRIBUTE_INTENSITY_FAINTATTRIBUTE_INTENSITY_NORMALATTRIBUTE_ITALICATTRIBUTE_NEGATIVE_OffATTRIBUTE_NEGATIVE_OFFATTRIBUTE_NEGATIVE_ONATTRIBUTE_UNDERLINEATTRIBUTE_UNDERLINE_DOUBLEATTRIBUTE_UNDERLINE_OFFBLACKBLUECYANERASE_LINEERASE_LINE_TO_BEGININGERASE_LINE_TO_ENDERASE_SCREENERASE_SCREEN_TO_BEGININGERASE_SCREEN_TO_ENDGREENMAGENTAREDWHITEYELLOW

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
private void
private short
invertAttributeColors(short attributes)

protected void
processAttributeRest()

Overrides jdk.internal.org.jline.utils.AnsiWriter.processAttributeRest.

process SGR 0 corresponding to Reset / Normal

protected void
processChangeWindowTitle(String title)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processChangeWindowTitle.

process OSC 2;text BEL corresponding to Change Window title

protected void
processCursorDown(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorDown.

process CSI n B corresponding to CUD – Cursor Down

protected void
processCursorDownLine(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorDownLine.

process CSI n E corresponding to CNL – Cursor Next Line

protected void
processCursorLeft(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorLeft.

process CSI n D corresponding to CUB – Cursor Back

protected void
processCursorRight(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorRight.

process CSI n C corresponding to CUF – Cursor Forward

protected void
processCursorTo(int row, int col)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorTo.

process CSI n ; m H corresponding to CUP – Cursor Position or CSI n ; m f corresponding to HVP – Horizontal and Vertical Position

protected void
processCursorToColumn(int x)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorToColumn.

process CSI n G corresponding to CHA – Cursor Horizontal Absolute

protected void
processCursorUp(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorUp.

process CSI n A corresponding to CUU – Cursor Up

protected void
processCursorUpLine(int count)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorUpLine.

process CSI n F corresponding to CPL – Cursor Previous Line

protected void
processDefaultBackgroundColor()

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDefaultBackgroundColor.

process SGR 49 corresponding to Default background color

protected void
processDefaultTextColor()

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDefaultTextColor.

process SGR 39 corresponding to Default text color (foreground)

protected void
processDeleteLine(int optionInt)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDeleteLine.

Process CSI s ANSI code, corresponding to DL – Delete Line

protected void
processEraseLine(int eraseOption)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processEraseLine.

Process CSI n K ANSI code, corresponding to ED – Erase in Line

protected void
processEraseScreen(int eraseOption)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processEraseScreen.

Process CSI n J ANSI code, corresponding to ED – Erase in Display

protected void
processInsertLine(int optionInt)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processInsertLine.

Process CSI s ANSI code, corresponding to IL – Insert Line

protected void
processRestoreCursorPosition()

Overrides jdk.internal.org.jline.utils.AnsiWriter.processRestoreCursorPosition.

Process CSI u ANSI code, corresponding to RCP – Restore Cursor Position

protected void
processSaveCursorPosition()

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSaveCursorPosition.

Process CSI s ANSI code, corresponding to SCP – Save Cursor Position

protected void
processSetAttribute(int attribute)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetAttribute.

process SGR other than 0 (reset), 30-39 (foreground), 40-49 (background), 90-97 (foreground high intensity) or 100-107 (background high intensity)

protected void
processSetBackgroundColorExt(int paletteIndex)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetBackgroundColorExt.

process SGR 48 corresponding to extended set background color with a palette of 255 colors.

protected void
processSetForegroundColorExt(int paletteIndex)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetForegroundColorExt.

process SGR 38 corresponding to extended set text color (foreground) with a palette of 255 colors.

Inherited from jdk.internal.org.jline.utils.AnsiWriter:
closeprocessChangeIconNameprocessChangeIconNameAndWindowTitleprocessCharsetSelectprocessScrollDownprocessScrollUpprocessSetBackgroundColorprocessSetBackgroundColorprocessSetBackgroundColorExtprocessSetForegroundColorprocessSetForegroundColorprocessSetForegroundColorExtprocessUnknownExtensionprocessUnknownOperatingSystemCommandwritewritewrite

Field Detail

ANSI_BACKGROUND_COLOR_MAPback to summary
private static final short[] ANSI_BACKGROUND_COLOR_MAP
ANSI_FOREGROUND_COLOR_MAPback to summary
private static final short[] ANSI_FOREGROUND_COLOR_MAP
BACKGROUND_BLACKback to summary
private static final short BACKGROUND_BLACK
BACKGROUND_CYANback to summary
private static final short BACKGROUND_CYAN
BACKGROUND_MAGENTAback to summary
private static final short BACKGROUND_MAGENTA
BACKGROUND_WHITEback to summary
private static final short BACKGROUND_WHITE
BACKGROUND_YELLOWback to summary
private static final short BACKGROUND_YELLOW
boldback to summary
private boolean bold
consoleback to summary
private static final MemorySegment console
FOREGROUND_BLACKback to summary
private static final short FOREGROUND_BLACK
FOREGROUND_CYANback to summary
private static final short FOREGROUND_CYAN
FOREGROUND_MAGENTAback to summary
private static final short FOREGROUND_MAGENTA
FOREGROUND_WHITEback to summary
private static final short FOREGROUND_WHITE
FOREGROUND_YELLOWback to summary
private static final short FOREGROUND_YELLOW
infoback to summary
private final Kernel32.CONSOLE_SCREEN_BUFFER_INFO info
negativeback to summary
private boolean negative
originalColorsback to summary
private final short originalColors
savedXback to summary
private short savedX
savedYback to summary
private short savedY
underlineback to summary
private boolean underline

Constructor Detail

WindowsAnsiWriterback to summary
public WindowsAnsiWriter(Writer out) throws IOException

Method Detail

applyAttributeback to summary
private void applyAttribute() throws IOException
applyCursorPositionback to summary
private void applyCursorPosition() throws IOException
getConsoleInfoback to summary
private void getConsoleInfo() throws IOException
invertAttributeColorsback to summary
private short invertAttributeColors(short attributes)
processAttributeRestback to summary
protected void processAttributeRest() throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processAttributeRest.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processAttributeRest.

process SGR 0 corresponding to Reset / Normal

Annotations
@Override
Exceptions
IOException:
if an error occurs
processChangeWindowTitleback to summary
protected void processChangeWindowTitle(String title)

Overrides jdk.internal.org.jline.utils.AnsiWriter.processChangeWindowTitle.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processChangeWindowTitle.

process OSC 2;text BEL corresponding to Change Window title

Annotations
@Override
processCursorDownback to summary
protected void processCursorDown(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorDown.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorDown.

process CSI n B corresponding to CUD – Cursor Down

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorDownLineback to summary
protected void processCursorDownLine(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorDownLine.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorDownLine.

process CSI n E corresponding to CNL – Cursor Next Line

Exceptions
IOException:
if an error occurs
processCursorLeftback to summary
protected void processCursorLeft(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorLeft.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorLeft.

process CSI n D corresponding to CUB – Cursor Back

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorRightback to summary
protected void processCursorRight(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorRight.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorRight.

process CSI n C corresponding to CUF – Cursor Forward

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorToback to summary
protected void processCursorTo(int row, int col) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorTo.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorTo.

process CSI n ; m H corresponding to CUP – Cursor Position or CSI n ; m f corresponding to HVP – Horizontal and Vertical Position

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorToColumnback to summary
protected void processCursorToColumn(int x) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorToColumn.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorToColumn.

process CSI n G corresponding to CHA – Cursor Horizontal Absolute

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorUpback to summary
protected void processCursorUp(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorUp.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorUp.

process CSI n A corresponding to CUU – Cursor Up

Annotations
@Override
Exceptions
IOException:
if an error occurs
processCursorUpLineback to summary
protected void processCursorUpLine(int count) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processCursorUpLine.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processCursorUpLine.

process CSI n F corresponding to CPL – Cursor Previous Line

Exceptions
IOException:
if an error occurs
processDefaultBackgroundColorback to summary
protected void processDefaultBackgroundColor() throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDefaultBackgroundColor.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processDefaultBackgroundColor.

process SGR 49 corresponding to Default background color

Annotations
@Override
Exceptions
IOException:
if an error occurs
processDefaultTextColorback to summary
protected void processDefaultTextColor() throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDefaultTextColor.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processDefaultTextColor.

process SGR 39 corresponding to Default text color (foreground)

Annotations
@Override
Exceptions
IOException:
if an error occurs
processDeleteLineback to summary
protected void processDeleteLine(int optionInt) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processDeleteLine.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processDeleteLine.

Process CSI s ANSI code, corresponding to DL – Delete Line

Annotations
@Override
Exceptions
IOException:
if an error occurs
processEraseLineback to summary
protected void processEraseLine(int eraseOption) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processEraseLine.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processEraseLine.

Process CSI n K ANSI code, corresponding to ED – Erase in Line

Annotations
@Override
Exceptions
IOException:
if an error occurs
processEraseScreenback to summary
protected void processEraseScreen(int eraseOption) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processEraseScreen.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processEraseScreen.

Process CSI n J ANSI code, corresponding to ED – Erase in Display

Annotations
@Override
Exceptions
IOException:
if an error occurs
processInsertLineback to summary
protected void processInsertLine(int optionInt) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processInsertLine.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processInsertLine.

Process CSI s ANSI code, corresponding to IL – Insert Line

Annotations
@Override
Exceptions
IOException:
if an error occurs
processRestoreCursorPositionback to summary
protected void processRestoreCursorPosition() throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processRestoreCursorPosition.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processRestoreCursorPosition.

Process CSI u ANSI code, corresponding to RCP – Restore Cursor Position

Annotations
@Override
Exceptions
IOException:
if an error occurs
processSaveCursorPositionback to summary
protected void processSaveCursorPosition() throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSaveCursorPosition.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processSaveCursorPosition.

Process CSI s ANSI code, corresponding to SCP – Save Cursor Position

Annotations
@Override
Exceptions
IOException:
if an error occurs
processSetAttributeback to summary
protected void processSetAttribute(int attribute) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetAttribute.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processSetAttribute.

process SGR other than 0 (reset), 30-39 (foreground), 40-49 (background), 90-97 (foreground high intensity) or 100-107 (background high intensity)

Annotations
@Override
Exceptions
IOException:
if an error occurs
processSetBackgroundColorExtback to summary
protected void processSetBackgroundColorExt(int paletteIndex) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetBackgroundColorExt.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processSetBackgroundColorExt.

process SGR 48 corresponding to extended set background color with a palette of 255 colors.

Annotations
@Override
Exceptions
IOException:
if an error occurs
processSetForegroundColorExtback to summary
protected void processSetForegroundColorExt(int paletteIndex) throws IOException

Overrides jdk.internal.org.jline.utils.AnsiWriter.processSetForegroundColorExt.

Doc from jdk.internal.org.jline.utils.AnsiWriter.processSetForegroundColorExt.

process SGR 38 corresponding to extended set text color (foreground) with a palette of 255 colors.

Annotations
@Override
Exceptions
IOException:
if an error occurs