Class SSHAttributesBuilder
java.lang.Object
org.aesh.terminal.ssh.SSHAttributesBuilder
Builder for creating terminal Attributes from an SSH environment.
- Author:
- Ståle W. Pedersen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the terminal Attributes from the configured SSH environment.static SSHAttributesBuilderbuilder()Creates a new SSHAttributesBuilder instance.environment(org.apache.sshd.server.Environment environment) Sets the SSH environment to read PTY modes from.
-
Method Details
-
builder
Creates a new SSHAttributesBuilder instance.- Returns:
- a new builder instance
-
environment
Sets the SSH environment to read PTY modes from.- Parameters:
environment- the SSH environment- Returns:
- this builder for method chaining
-
build
Builds the terminal Attributes from the configured SSH environment. Maps SSH PTY modes to terminal control characters and flags.- Returns:
- the configured Attributes instance
-