Package nl.lxtreme.jvt220.terminal.vt220

Examples of nl.lxtreme.jvt220.terminal.vt220.VT220Parser


    {
      boolean cellChanged = heatMap.get( i );
      if ( cellChanged )
      {
        // Cell is changed...
        final ITextCell cell = cells[i];

        final int x = ( i % columns ) * cw;
        final int y = ( i / columns ) * ( ch + ls );

        final Rectangle rect = new Rectangle( x, y, cw, ch + ls );

        canvas.setColor( convertToColor( cell.getBackground(), m_colorScheme.getBackgroundColor() ) );
        canvas.fillRect( rect.x, rect.y, rect.width, rect.height );

        final String txt = Character.toString( cell.getChar() );

        AttributedString attrStr = new AttributedString( txt );
        cursorColor = applyAttributes( cell, attrStr, font );

        AttributedCharacterIterator characterIterator = attrStr.getIterator();
View Full Code Here


  /**
   * Initializes this dialog by creating and initializing all components.
   */
  private void initDialog()
  {
    this.terminalFrontend = new SwingFrontend();
    ( ( JComponent )this.terminalFrontend ).addMouseListener( new MouseAdapter()
    {
      public void mouseClicked( java.awt.event.MouseEvent e )
      {
        ( ( JComponent )e.getSource() ).requestFocus();
View Full Code Here

      case ')':
      case '*':
      case '+':
      {
        // Designate G0/G1/G2 or G3 Character Set
        GraphicSet gs = m_graphicSetState.getGraphicSet( designator - '(' );
        m_graphicSetState.designateGraphicSet( gs, ( char )parameters[0] );
        break;
      }
      case '=':
      {
View Full Code Here

    public GraphicSetState()
    {
      m_graphicSets = new GraphicSet[4];
      for ( int i = 0; i < m_graphicSets.length; i++ )
      {
        m_graphicSets[i] = new GraphicSet( i );
      }

      resetState();
    }
View Full Code Here

     *
     * @return the GL graphic set, never <code>null</code>.
     */
    public GraphicSet getGL()
    {
      GraphicSet result = m_gl;
      if ( m_glOverride != null )
      {
        result = m_glOverride;
        m_glOverride = null;
      }
View Full Code Here

  public VT220Terminal( final int columns, final int lines )
  {
    super( columns, lines );

    m_graphicSetState = new GraphicSetState();
    m_vt220parser = new VT220Parser();
    m_savedState = new StateHolder();

    // Make sure the terminal is in a known state...
    reset();
  }
View Full Code Here

      this.serialPort = openSerialPort();

      this.serialInput = this.serialPort.getInputStream();
      this.serialOutput = this.serialPort.getOutputStream();

      this.terminal = new VT220Terminal( 80, 24 );

      this.terminalFrontend.connect( this.serialOutput );
      this.terminalFrontend.setTerminal( this.terminal );

      disableControls();
View Full Code Here

TOP

Related Classes of nl.lxtreme.jvt220.terminal.vt220.VT220Parser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.