Class TerminalDevice

java.lang.Object
org.aesh.terminal.BaseDevice
org.aesh.terminal.tty.TerminalDevice
All Implemented Interfaces:
org.aesh.terminal.Device

public class TerminalDevice extends org.aesh.terminal.BaseDevice
Contains info regarding the current device connected to readline
Author:
Stale 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
  • Field Summary

    Fields inherited from class org.aesh.terminal.BaseDevice

    bools, ints, strings, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new terminal device with the specified type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAllCapabilityBooleans(Set<org.aesh.terminal.tty.Capability> capabilities)
    Add all boolean capabilities from a set.
    void
    addAllCapabilityInts(Map<org.aesh.terminal.tty.Capability, Integer> integers)
    Add all integer capabilities from a map.
    void
    addAllCapabilityStrings(Map<org.aesh.terminal.tty.Capability, String> strings)
    Add all string capabilities from a map.
    void
    addCapability(org.aesh.terminal.tty.Capability capability)
    Add a boolean capability.
    void
    addCapability(org.aesh.terminal.tty.Capability capability, Integer integer)
    Add an integer capability.
    void
    addCapability(org.aesh.terminal.tty.Capability capability, String s)
    Add a string capability.

    Methods inherited from class org.aesh.terminal.BaseDevice

    getBooleanCapability, getNumericCapability, getStringCapability, getStringCapabilityAsInts, puts, puts, type

    Methods inherited from class 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

    • TerminalDevice

      public TerminalDevice(String type)
      Create a new terminal device with the specified type.
      Parameters:
      type - the terminal type
  • Method Details

    • addCapability

      public void addCapability(org.aesh.terminal.tty.Capability capability, Integer integer)
      Add an integer capability.
      Parameters:
      capability - the capability to add
      integer - the integer value
    • addAllCapabilityInts

      public void addAllCapabilityInts(Map<org.aesh.terminal.tty.Capability, Integer> integers)
      Add all integer capabilities from a map.
      Parameters:
      integers - the map of capabilities to integers
    • addCapability

      public void addCapability(org.aesh.terminal.tty.Capability capability)
      Add a boolean capability.
      Parameters:
      capability - the capability to add
    • addAllCapabilityBooleans

      public void addAllCapabilityBooleans(Set<org.aesh.terminal.tty.Capability> capabilities)
      Add all boolean capabilities from a set.
      Parameters:
      capabilities - the set of capabilities
    • addCapability

      public void addCapability(org.aesh.terminal.tty.Capability capability, String s)
      Add a string capability.
      Parameters:
      capability - the capability to add
      s - the string value
    • addAllCapabilityStrings

      public void addAllCapabilityStrings(Map<org.aesh.terminal.tty.Capability, String> strings)
      Add all string capabilities from a map.
      Parameters:
      strings - the map of capabilities to strings