public class

UnixTerminal

extends TerminalSupport
java.lang.Object
   ↳ jline.TerminalSupport
     ↳ jline.UnixTerminal
Known Direct Subclasses

Class Overview

Terminal that is used for unix platforms. Terminal initialization is handled by issuing the stty command against the /dev/tty file to disable character echoing and enable character input. All known unix systems (including Linux and Macintosh OS X) support the stty), so this implementation should work for an reasonable POSIX system.

Summary

[Expand]
Inherited Constants
From class jline.TerminalSupport
Public Constructors
UnixTerminal()
Public Methods
void disableInterruptCharacter()
void enableInterruptCharacter()
int getHeight()
Returns the value of stty rows>/tt> param.
int getWidth()
Returns the value of stty columns param.
void init()
Remove line-buffered input by invoking "stty -icanon min 1" against the current terminal.
void restore()
Restore the original terminal configuration, which can be used when shutting down the console reader.
synchronized void setEchoEnabled(boolean enabled)
Protected Methods
TerminalLineSettings getSettings()
[Expand]
Inherited Methods
From class jline.TerminalSupport
From class java.lang.Object
From interface jline.Terminal

Public Constructors

public UnixTerminal ()

Throws
Exception

Public Methods

public void disableInterruptCharacter ()

public void enableInterruptCharacter ()

public int getHeight ()

Returns the value of stty rows>/tt> param.

public int getWidth ()

Returns the value of stty columns param.

public void init ()

Remove line-buffered input by invoking "stty -icanon min 1" against the current terminal.

Throws
Exception

public void restore ()

Restore the original terminal configuration, which can be used when shutting down the console reader. The ConsoleReader cannot be used after calling this method.

Throws
Exception

public synchronized void setEchoEnabled (boolean enabled)

Protected Methods

protected TerminalLineSettings getSettings ()