java.lang.Object
org.springframework.shell.test.jediterm.terminal.emulator.charset.GraphicSetState

public class GraphicSetState extends Object
  • Constructor Details

    • GraphicSetState

      public GraphicSetState()
  • Method Details

    • designateGraphicSet

      public void designateGraphicSet(GraphicSet graphicSet, char designator)
      Designates the given graphic set to the character set designator.
      Parameters:
      graphicSet - the graphic set to designate;
      designator - the designator of the character set.
    • designateGraphicSet

      public void designateGraphicSet(int num, CharacterSet characterSet)
    • getGL

      public GraphicSet getGL()
      Returns the (possibly overridden) GL graphic set.
    • getGR

      public GraphicSet getGR()
      Returns the GR graphic set.
    • getGraphicSet

      public GraphicSet getGraphicSet(int index)
      Returns the current graphic set (one of four).
      Parameters:
      index - the index of the graphic set, 0..3.
    • map

      public char map(char ch)
      Returns the mapping for the given character.
      Parameters:
      ch - the character to map.
      Returns:
      the mapped character.
    • overrideGL

      public void overrideGL(int index)
      Overrides the GL graphic set for the next written character.
      Parameters:
      index - the graphic set index, >= 0 && < 3.
    • resetState

      public void resetState()
      Resets the state to its initial values.
    • setGL

      public void setGL(int index)
      Selects the graphic set for GL.
      Parameters:
      index - the graphic set index, >= 0 && <= 3.
    • setGR

      public void setGR(int index)
      Selects the graphic set for GR.
      Parameters:
      index - the graphic set index, >= 0 && <= 3.
    • getGLOverrideIndex

      public int getGLOverrideIndex()