Class TelnetDevice

java.lang.Object
org.aesh.terminal.telnet.TelnetDevice
All Implemented Interfaces:
org.aesh.terminal.Device

public class TelnetDevice extends Object implements org.aesh.terminal.Device
Device implementation for Telnet terminal connections.
Author:
Ståle W. Pedersen
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.aesh.terminal.Device

    org.aesh.terminal.Device.OscCode, org.aesh.terminal.Device.TerminalType
  • Constructor Summary

    Constructors
    Constructor
    Description
    TelnetDevice(String terminalType)
    Creates a new TelnetDevice with the specified terminal type.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getBooleanCapability(org.aesh.terminal.tty.Capability capability)
     
    getNumericCapability(org.aesh.terminal.tty.Capability capability)
     
    getStringCapability(org.aesh.terminal.tty.Capability capability)
     
    int[]
    getStringCapabilityAsInts(org.aesh.terminal.tty.Capability capability, Object... params)
     
    boolean
    puts(Consumer<int[]> output, String capability, Object... params)
     
    boolean
    puts(Consumer<int[]> output, org.aesh.terminal.tty.Capability capability, Object... params)
     
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.aesh.terminal.Device

    detectTerminalType, getColorDepth, getImageProtocol, isJetBrainsTerminal, isMultiplexer, isTmuxPassthroughEnabled, supportsGraphemeClusterMode, supportsHyperlinks, supportsImages, supportsOscCode, supportsOscQueries, supportsShellIntegration, supportsSynchronizedOutput, supportsThemeQuery
  • Constructor Details

    • TelnetDevice

      public TelnetDevice(String terminalType)
      Creates a new TelnetDevice with the specified terminal type.
      Parameters:
      terminalType - the terminal type string (e.g., "xterm", "vt100")
  • Method Details

    • type

      public String type()
      Specified by:
      type in interface org.aesh.terminal.Device
    • getBooleanCapability

      public boolean getBooleanCapability(org.aesh.terminal.tty.Capability capability)
      Specified by:
      getBooleanCapability in interface org.aesh.terminal.Device
    • getNumericCapability

      public Integer getNumericCapability(org.aesh.terminal.tty.Capability capability)
      Specified by:
      getNumericCapability in interface org.aesh.terminal.Device
    • getStringCapability

      public String getStringCapability(org.aesh.terminal.tty.Capability capability)
      Specified by:
      getStringCapability in interface org.aesh.terminal.Device
    • getStringCapabilityAsInts

      public int[] getStringCapabilityAsInts(org.aesh.terminal.tty.Capability capability, Object... params)
      Specified by:
      getStringCapabilityAsInts in interface org.aesh.terminal.Device
    • puts

      public boolean puts(Consumer<int[]> output, org.aesh.terminal.tty.Capability capability, Object... params)
      Specified by:
      puts in interface org.aesh.terminal.Device
    • puts

      public boolean puts(Consumer<int[]> output, String capability, Object... params)
      Specified by:
      puts in interface org.aesh.terminal.Device