Package org.jline.builtins
Class InputRC
java.lang.Object
org.jline.builtins.InputRC
Utility class for configuring a LineReader from an inputrc file.
This class provides methods to configure a LineReader using initialization files in the same format as GNU Readline's inputrc files. These files can define key bindings, variable settings, and other configuration options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
configure
(LineReader reader, InputStream is) Configures a LineReader from an inputrc file provided as an InputStream.static void
configure
(LineReader reader, Reader r) Configures a LineReader from an inputrc file provided as a Reader.static void
configure
(LineReader reader, URL url) Configures a LineReader from an inputrc file at the specified URL.
-
Constructor Details
-
InputRC
public InputRC()
-
-
Method Details
-
configure
Configures a LineReader from an inputrc file at the specified URL.- Parameters:
reader
- the LineReader to configureurl
- the URL of the inputrc file- Throws:
IOException
- if an I/O error occurs
-
configure
Configures a LineReader from an inputrc file provided as an InputStream.- Parameters:
reader
- the LineReader to configureis
- the InputStream containing the inputrc content- Throws:
IOException
- if an I/O error occurs
-
configure
Configures a LineReader from an inputrc file provided as a Reader.- Parameters:
reader
- the LineReader to configurer
- the Reader containing the inputrc content- Throws:
IOException
- if an I/O error occurs
-