public final class

TerminalLineSettings

extends Object
java.lang.Object
   ↳ jline.internal.TerminalLineSettings

Class Overview

Provides access to terminal line settings via stty.

Summary

Constants
String DEFAULT_SH
String DEFAULT_STTY
String JLINE_SH
String JLINE_STTY
Public Constructors
TerminalLineSettings()
Public Methods
String get(String args)
String getConfig()
int getProperty(String name)

Get the value of a stty property, including the management of a cache.

void restore()
void set(String args)
Protected Methods
static int getProperty(String name, String stty)

Parses a stty output (provided by stty -a) and return the value of a given property.

[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DEFAULT_SH

Constant Value: "sh"

public static final String DEFAULT_STTY

Constant Value: "stty"

public static final String JLINE_SH

Constant Value: "jline.sh"

public static final String JLINE_STTY

Constant Value: "jline.stty"

Public Constructors

public TerminalLineSettings ()

Public Methods

public String get (String args)

public String getConfig ()

public int getProperty (String name)

Get the value of a stty property, including the management of a cache.

Parameters
name the stty property.
Returns
  • the stty property value.

public void restore ()

public void set (String args)

Protected Methods

protected static int getProperty (String name, String stty)

Parses a stty output (provided by stty -a) and return the value of a given property.

Parameters
name property name.
stty string resulting of stty -a execution.
Returns
  • value of the given property.