Class AnsiBufferedInputStream

java.lang.Object
java.io.InputStream
ghidra.pty.windows.AnsiBufferedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class AnsiBufferedInputStream extends InputStream
  • Constructor Details

    • AnsiBufferedInputStream

      public AnsiBufferedInputStream(InputStream in)
  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • readUntilBaked

      protected int readUntilBaked() throws IOException
      Throws:
      IOException
    • printDebugChar

      protected void printDebugChar(byte c)
    • processNext

      protected int processNext() throws IOException
      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

      protected String readAndClear(ByteBuffer buf)
    • readAndClearEscBuf

      protected String 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)