Class Ansi.NoAnsi

java.lang.Object
org.fusesource.jansi.Ansi
org.fusesource.jansi.Ansi.NoAnsi
All Implemented Interfaces:
Appendable
Enclosing class:
Ansi

private static class Ansi.NoAnsi extends Ansi
  • Constructor Details

    • NoAnsi

      public NoAnsi()
    • NoAnsi

      public NoAnsi(int size)
    • NoAnsi

      public NoAnsi(StringBuilder builder)
  • Method Details

    • fg

      public Ansi fg(Ansi.Color color)
      Overrides:
      fg in class Ansi
    • bg

      public Ansi bg(Ansi.Color color)
      Overrides:
      bg in class Ansi
    • fgBright

      public Ansi fgBright(Ansi.Color color)
      Overrides:
      fgBright in class Ansi
    • bgBright

      public Ansi bgBright(Ansi.Color color)
      Overrides:
      bgBright in class Ansi
    • fg

      public Ansi fg(int color)
      Overrides:
      fg in class Ansi
    • fgRgb

      public Ansi fgRgb(int r, int g, int b)
      Overrides:
      fgRgb in class Ansi
    • bg

      public Ansi bg(int color)
      Overrides:
      bg in class Ansi
    • bgRgb

      public Ansi bgRgb(int r, int g, int b)
      Overrides:
      bgRgb in class Ansi
    • a

      public Ansi a(Ansi.Attribute attribute)
      Overrides:
      a in class Ansi
    • cursor

      public Ansi cursor(int row, int column)
      Description copied from class: Ansi
      Moves the cursor to row n, column m. The values are 1-based. Any values less than 1 are mapped to 1.
      Overrides:
      cursor in class Ansi
      Parameters:
      row - row (1-based) from top
      column - column (1 based) from left
      Returns:
      this Ansi instance
    • cursorToColumn

      public Ansi cursorToColumn(int x)
      Description copied from class: Ansi
      Moves the cursor to column n. The parameter n is 1-based. If n is less than 1 it is moved to the first column.
      Overrides:
      cursorToColumn in class Ansi
      Parameters:
      x - the index (1-based) of the column to move to
      Returns:
      this Ansi instance
    • cursorUp

      public Ansi cursorUp(int y)
      Description copied from class: Ansi
      Moves the cursor up. If the parameter y is negative it moves the cursor down.
      Overrides:
      cursorUp in class Ansi
      Parameters:
      y - the number of lines to move up
      Returns:
      this Ansi instance
    • cursorRight

      public Ansi cursorRight(int x)
      Description copied from class: Ansi
      Moves the cursor right. If the parameter x is negative it moves the cursor left.
      Overrides:
      cursorRight in class Ansi
      Parameters:
      x - the number of characters to move right
      Returns:
      this Ansi instance
    • cursorDown

      public Ansi cursorDown(int y)
      Description copied from class: Ansi
      Moves the cursor down. If the parameter y is negative it moves the cursor up.
      Overrides:
      cursorDown in class Ansi
      Parameters:
      y - the number of lines to move down
      Returns:
      this Ansi instance
    • cursorLeft

      public Ansi cursorLeft(int x)
      Description copied from class: Ansi
      Moves the cursor left. If the parameter x is negative it moves the cursor right.
      Overrides:
      cursorLeft in class Ansi
      Parameters:
      x - the number of characters to move left
      Returns:
      this Ansi instance
    • cursorDownLine

      public Ansi cursorDownLine()
      Description copied from class: Ansi
      Moves the cursor to the beginning of the line below.
      Overrides:
      cursorDownLine in class Ansi
      Returns:
      this Ansi instance
    • cursorDownLine

      public Ansi cursorDownLine(int n)
      Description copied from class: Ansi
      Moves the cursor to the beginning of the n-th line below. If the parameter n is negative it moves the cursor to the beginning of the n-th line above.
      Overrides:
      cursorDownLine in class Ansi
      Parameters:
      n - the number of lines to move the cursor
      Returns:
      this Ansi instance
    • cursorUpLine

      public Ansi cursorUpLine()
      Description copied from class: Ansi
      Moves the cursor to the beginning of the line above.
      Overrides:
      cursorUpLine in class Ansi
      Returns:
      this Ansi instance
    • cursorUpLine

      public Ansi cursorUpLine(int n)
      Description copied from class: Ansi
      Moves the cursor to the beginning of the n-th line above. If the parameter n is negative it moves the cursor to the beginning of the n-th line below.
      Overrides:
      cursorUpLine in class Ansi
      Parameters:
      n - the number of lines to move the cursor
      Returns:
      this Ansi instance
    • eraseScreen

      public Ansi eraseScreen()
      Overrides:
      eraseScreen in class Ansi
    • eraseScreen

      public Ansi eraseScreen(Ansi.Erase kind)
      Overrides:
      eraseScreen in class Ansi
    • eraseLine

      public Ansi eraseLine()
      Overrides:
      eraseLine in class Ansi
    • eraseLine

      public Ansi eraseLine(Ansi.Erase kind)
      Overrides:
      eraseLine in class Ansi
    • scrollUp

      public Ansi scrollUp(int rows)
      Overrides:
      scrollUp in class Ansi
    • scrollDown

      public Ansi scrollDown(int rows)
      Overrides:
      scrollDown in class Ansi
    • saveCursorPosition

      public Ansi saveCursorPosition()
      Overrides:
      saveCursorPosition in class Ansi
    • restorCursorPosition

      @Deprecated public Ansi restorCursorPosition()
      Deprecated.
      Overrides:
      restorCursorPosition in class Ansi
    • restoreCursorPosition

      public Ansi restoreCursorPosition()
      Overrides:
      restoreCursorPosition in class Ansi
    • reset

      public Ansi reset()
      Overrides:
      reset in class Ansi