Package org.aesh.terminal.tty
Class DeviceBuilder
java.lang.Object
org.aesh.terminal.tty.DeviceBuilder
Builder for creating TerminalDevice instances with terminal capabilities.
- Author:
- Stale W. Pedersen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a new TerminalDevice with the configured settings.static DeviceBuilderbuilder()Creates a new DeviceBuilder instance.Sets the terminal type name for the device.
-
Method Details
-
builder
Creates a new DeviceBuilder instance.- Returns:
- a new DeviceBuilder
-
name
Sets the terminal type name for the device.- Parameters:
name- the terminal type name (e.g., "ansi", "windows", "xterm")- Returns:
- this builder for method chaining
-
build
Builds and returns a new TerminalDevice with the configured settings. If no name is set, defaults to "ansi" on POSIX systems or "windows" on Windows.- Returns:
- a new TerminalDevice instance
-