Class ImageProtocolDetector

java.lang.Object
org.aesh.terminal.image.ImageProtocolDetector

public final class ImageProtocolDetector extends Object
Utility class for detecting terminal image protocol support.
  • Method Details

    • detectFromTermType

      public static ImageProtocol detectFromTermType(String termType)
      Detect the image protocol based on the terminal type string.
      Parameters:
      termType - the terminal type (e.g., from TERM environment variable)
      Returns:
      the detected protocol, or NONE if unknown
    • checkEnvironment

      public static ImageProtocol checkEnvironment()
      Check environment variables to detect image protocol support.
      Returns:
      the detected protocol based on environment, or NONE