Class ExecTerminalProvider

java.lang.Object
org.jline.terminal.impl.exec.ExecTerminalProvider
All Implemented Interfaces:
TerminalProvider

public class ExecTerminalProvider extends Object implements TerminalProvider
A terminal provider implementation that uses external commands to interact with the terminal.

The ExecTerminalProvider class provides a TerminalProvider implementation that uses external commands (such as stty, tput, etc.) to interact with the terminal. This approach allows JLine to work in environments where native libraries are not available or cannot be used, by relying on standard command-line utilities that are typically available on Unix-like systems.

This provider is typically used as a fallback when more direct methods of terminal interaction (such as JNI or JNA) are not available. While it provides good compatibility, it may have higher overhead due to the need to spawn external processes for many operations.

The provider name is "exec", which can be specified in the org.jline.terminal.provider system property to force the use of this provider.

See Also: