Package ghidra.pty.windows
Class AnsiBufferedInputStream
java.lang.Object
java.io.InputStream
ghidra.pty.windows.AnsiBufferedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendChar
(byte c) protected void
bakeLine()
void
close()
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
execPrivateSequence
(boolean enable) protected void
protected void
protected void
protected void
protected void
protected void
protected int
guessEnd()
There's not really a good way to know if any trailing space was intentional.protected int
protected int[]
protected void
printDebugChar
(byte c) protected void
processChars
(byte c) protected void
processCsi
(byte c) protected void
processCsiParamOrCommand
(byte c) protected void
processCsiQ
(byte c) protected void
processEsc
(byte c) protected int
protected void
processOsc
(byte c) protected void
processWindowTitle
(byte c) protected void
processWindowTitleEsc
(byte c) int
read()
int
read
(byte[] b, int off, int len) protected String
readAndClear
(ByteBuffer buf) protected String
protected int
protected void
setPosition
(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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in 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)
-