Package ghidra.pty.windows
Class AnsiBufferedInputStream
java.lang.Object
java.io.InputStream
ghidra.pty.windows.AnsiBufferedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendChar(byte c) protected voidbakeLine()voidclose()protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidexecPrivateSequence(boolean enable) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected intguessEnd()There's not really a good way to know if any trailing space was intentional.protected intprotected int[]protected voidprintDebugChar(byte c) protected voidprocessChars(byte c) protected voidprocessCsi(byte c) protected voidprocessCsiParamOrCommand(byte c) protected voidprocessCsiQ(byte c) protected voidprocessEsc(byte c) protected intprotected voidprocessOsc(byte c) protected voidprocessWindowTitle(byte c) protected voidprocessWindowTitleEsc(byte c) intread()intread(byte[] b, int off, int len) protected StringreadAndClear(ByteBuffer buf) protected Stringprotected intprotected voidsetPosition(int newPosition) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
AnsiBufferedInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
readUntilBaked
- Throws:
IOException
-
printDebugChar
protected void printDebugChar(byte c) -
processNext
- Throws:
IOException
-
guessEnd
protected int guessEnd()There's not really a good way to know if any trailing space was intentional. For GDB/MI, that doesn't really matter. -
bakeLine
protected void bakeLine() -
appendChar
protected void appendChar(byte c) -
processChars
protected void processChars(byte c) -
processEsc
protected void processEsc(byte c) -
processCsi
protected void processCsi(byte c) -
processCsiParamOrCommand
protected void processCsiParamOrCommand(byte c) -
processCsiQ
protected void processCsiQ(byte c) -
processOsc
protected void processOsc(byte c) -
processWindowTitle
protected void processWindowTitle(byte c) -
processWindowTitleEsc
protected void processWindowTitleEsc(byte c) -
readAndClear
-
readAndClearEscBuf
-
parseNumericBuffer
protected int parseNumericBuffer() -
parseNumericListBuffer
protected int[] parseNumericListBuffer() -
execCursorUp
protected void execCursorUp() -
execCursorDown
protected void execCursorDown() -
setPosition
protected void setPosition(int newPosition) -
execCursorForward
protected void execCursorForward() -
execCursorBackward
protected void execCursorBackward() -
execCursorPosition
protected void execCursorPosition() -
execTextCursorEnableBlinking
protected void execTextCursorEnableBlinking() -
execTextCursorDisableBlinking
protected void execTextCursorDisableBlinking() -
execTextCursorEnableModeShow
protected void execTextCursorEnableModeShow() -
execTextCursorDisableModeShow
protected void execTextCursorDisableModeShow() -
execEraseInDisplay
protected void execEraseInDisplay() -
execEraseInLine
protected void execEraseInLine() -
execEraseCharacter
protected void execEraseCharacter() -
execSetGraphicsRendition
protected void execSetGraphicsRendition() -
execSetWindowTitle
protected void execSetWindowTitle() -
execPrivateSequence
protected void execPrivateSequence(boolean enable)
-