Class PosixChannelPtyTerminal

java.lang.Object
org.jline.terminal.impl.AbstractTerminal
org.jline.terminal.impl.AbstractPosixTerminal
com.sshtools.server.vsession.PosixChannelPtyTerminal
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, org.jline.terminal.Terminal

public class PosixChannelPtyTerminal extends org.jline.terminal.impl.AbstractPosixTerminal
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jline.terminal.Terminal

    org.jline.terminal.Terminal.MouseTracking, org.jline.terminal.Terminal.Signal, org.jline.terminal.Terminal.SignalHandler
  • Field Summary

    Fields inherited from class org.jline.terminal.impl.AbstractPosixTerminal

    originalAttributes, pty

    Fields inherited from class org.jline.terminal.impl.AbstractTerminal

    bools, encoding, handlers, ints, name, onClose, palette, status, strings, type

    Fields inherited from interface org.jline.terminal.Terminal

    TYPE_DUMB, TYPE_DUMB_COLOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding)
     
    PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding, org.jline.terminal.Terminal.SignalHandler signalHandler)
     
    PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding, org.jline.terminal.Terminal.SignalHandler signalHandler, boolean paused)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected void
     
    org.jline.terminal.Size
     
    void
    in(byte[] buf, int off, int len)
     
     
     
    void
     
    void
    pause(boolean wait)
     
    boolean
     
    org.jline.utils.NonBlockingReader
     
    void
     
     

    Methods inherited from class org.jline.terminal.impl.AbstractPosixTerminal

    getAttributes, getCursorPosition, getPty, setAttributes, setSize

    Methods inherited from class org.jline.terminal.impl.AbstractTerminal

    checkInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getPalette, getStatus, getStatus, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, setOnClose, trackFocus, trackMouse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jline.terminal.Terminal

    getBufferSize, getHeight, getWidth
  • Constructor Details

    • PosixChannelPtyTerminal

      public PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding) throws IOException
      Throws:
      IOException
    • PosixChannelPtyTerminal

      public PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding, org.jline.terminal.Terminal.SignalHandler signalHandler) throws IOException
      Throws:
      IOException
    • PosixChannelPtyTerminal

      public PosixChannelPtyTerminal(String name, String type, org.jline.terminal.spi.Pty pty, int cols, int rows, com.sshtools.common.ssh.Channel out, Charset encoding, org.jline.terminal.Terminal.SignalHandler signalHandler, boolean paused) throws IOException
      Throws:
      IOException
  • Method Details

    • getSize

      public org.jline.terminal.Size getSize()
      Specified by:
      getSize in interface org.jline.terminal.Terminal
      Overrides:
      getSize in class org.jline.terminal.impl.AbstractPosixTerminal
    • in

      public void in(byte[] buf, int off, int len) throws IOException
      Throws:
      IOException
    • input

      public InputStream input()
    • reader

      public org.jline.utils.NonBlockingReader reader()
    • output

      public OutputStream output()
    • writer

      public PrintWriter writer()
    • doClose

      protected void doClose() throws IOException
      Overrides:
      doClose in class org.jline.terminal.impl.AbstractPosixTerminal
      Throws:
      IOException
    • canPauseResume

      public boolean canPauseResume()
      Specified by:
      canPauseResume in interface org.jline.terminal.Terminal
      Overrides:
      canPauseResume in class org.jline.terminal.impl.AbstractTerminal
    • pause

      public void pause()
      Specified by:
      pause in interface org.jline.terminal.Terminal
      Overrides:
      pause in class org.jline.terminal.impl.AbstractTerminal
    • pause

      public void pause(boolean wait) throws InterruptedException
      Specified by:
      pause in interface org.jline.terminal.Terminal
      Overrides:
      pause in class org.jline.terminal.impl.AbstractTerminal
      Throws:
      InterruptedException
    • resume

      public void resume()
      Specified by:
      resume in interface org.jline.terminal.Terminal
      Overrides:
      resume in class org.jline.terminal.impl.AbstractTerminal
    • paused

      public boolean paused()
      Specified by:
      paused in interface org.jline.terminal.Terminal
      Overrides:
      paused in class org.jline.terminal.impl.AbstractTerminal