Class ExecHelper

java.lang.Object
org.jline.utils.ExecHelper

public final class ExecHelper extends Object
Utility class for executing external commands and capturing their output.

The ExecHelper class provides methods for executing external commands (primarily on Unix-like systems) and capturing their output. It handles the complexities of process creation, input/output redirection, and process termination.

This class is used by various JLine components that need to interact with the underlying operating system, such as terminal detection, capability querying, and terminal size determination. It provides a simplified interface for executing commands and capturing their output as strings.

The methods in this class handle common error conditions, such as interrupted execution and I/O errors, and provide appropriate logging for debugging purposes.

Note that while this class is primarily designed for Unix-like systems, some functionality may work on other platforms depending on the available commands.