public class

TerminalFactory

extends Object
java.lang.Object
   ↳ jline.TerminalFactory

Class Overview

Creates terminal instances.

Summary

Nested Classes
enum TerminalFactory.Flavor  
enum TerminalFactory.Type  
Constants
String AUTO
String FALSE
String JLINE_TERMINAL
String NONE
String OFF
String UNIX
String WIN
String WINDOWS
Public Constructors
TerminalFactory()
Public Methods
synchronized static void configure(String type)
synchronized static void configure(TerminalFactory.Type type)
synchronized static Terminal create()
synchronized static Terminal get()
static Terminal getFlavor(TerminalFactory.Flavor flavor)
static void registerFlavor(TerminalFactory.Flavor flavor, Class<? extends Terminal> type)
synchronized static void reset()
synchronized static void resetIf(Terminal t)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String AUTO

Constant Value: "auto"

public static final String FALSE

Constant Value: "false"

public static final String JLINE_TERMINAL

Constant Value: "jline.terminal"

public static final String NONE

Constant Value: "none"

public static final String OFF

Constant Value: "off"

public static final String UNIX

Constant Value: "unix"

public static final String WIN

Constant Value: "win"

public static final String WINDOWS

Constant Value: "windows"

Public Constructors

public TerminalFactory ()

Public Methods

public static synchronized void configure (String type)

public static synchronized void configure (TerminalFactory.Type type)

public static synchronized Terminal create ()

public static synchronized Terminal get ()

public static Terminal getFlavor (TerminalFactory.Flavor flavor)

Throws
Exception

public static void registerFlavor (TerminalFactory.Flavor flavor, Class<? extends Terminal> type)

public static synchronized void reset ()

public static synchronized void resetIf (Terminal t)