public class TerminalFacade extends Object
Modifier and Type | Method and Description |
---|---|
static CygwinTerminal |
createCygwinTerminal()
Experimental Cygwin support!
|
static CygwinTerminal |
createCygwinTerminal(Charset terminalCharset)
Experimental Cygwin support!
|
static CygwinTerminal |
createCygwinTerminal(InputStream terminalInput,
OutputStream terminalOutput)
Experimental Cygwin support!
|
static CygwinTerminal |
createCygwinTerminal(InputStream terminalInput,
OutputStream terminalOutput,
Charset terminalCharset)
Experimental Cygwin support!
|
static GUIScreen |
createGUIScreen()
Creates a
GUIScreen backed by a default terminal |
static GUIScreen |
createGUIScreen(Screen screen)
Creates a
GUIScreen backed by a supplied Screen |
static GUIScreen |
createGUIScreen(Terminal terminal)
Creates a
GUIScreen backed by a supplied Terminal |
static Screen |
createScreen()
Creates a
Screen backed by a default terminal |
static Screen |
createScreen(Terminal terminal)
Creates a
Screen backed by a supplied Terminal |
static SwingTerminal |
createSwingTerminal()
Creates a new
SwingTerminal object, a simple Swing terminal emulator,
100 columns wide and 30 rows high. |
static SwingTerminal |
createSwingTerminal(int columns,
int rows)
Creates a new
SwingTerminal object, a simple Swing terminal emulator,
with specified dimensions. |
static SwingTerminal |
createSwingTerminal(TerminalAppearance appearance)
Creates a new
SwingTerminal object, a simple Swing terminal emulator,
100 columns wide and 30 rows high. |
static SwingTerminal |
createSwingTerminal(TerminalAppearance appearance,
int columns,
int rows)
Creates a new
SwingTerminal object, a simple Swing terminal emulator,
with specified dimensions. |
static Terminal |
createTerminal()
This method will return a
SwingTerminal if
you are running the program on a system with a graphical environment
available, otherwise a suitable text-based Terminal , all with
default settings. |
static Terminal |
createTerminal(Charset terminalCharset)
Creates a default terminal with a specified character set.
|
static Terminal |
createTerminal(InputStream terminalInput,
OutputStream terminalOutput)
Creates a default terminal with a specified input/output streams.
|
static Terminal |
createTerminal(InputStream terminalInput,
OutputStream terminalOutput,
Charset terminalCharset)
Creates a default terminal with a specified character set and
input/output streams.
|
static Terminal |
createTextTerminal() |
static Terminal |
createTextTerminal(InputStream terminalInput,
OutputStream terminalOutput,
Charset terminalCharset) |
static UnixTerminal |
createUnixTerminal()
Creates a
UnixTerminal object using the default character set
and System.out and System.in for input and output of the
terminal. |
static UnixTerminal |
createUnixTerminal(Charset terminalCharset)
Creates a
UnixTerminal object that is using a supplied character
set when converting characters to bytes. |
static UnixTerminal |
createUnixTerminal(InputStream terminalInput,
OutputStream terminalOutput)
Creates a
UnixTerminal object that is using supplied input and
output streams for standard out and standard in. |
static UnixTerminal |
createUnixTerminal(InputStream terminalInput,
OutputStream terminalOutput,
Charset terminalCharset)
Creates a
UnixTerminal object that is using supplied input and
output streams for standard out and standard in, as well as a character
set to be used when converting characters to bytes. |
public static Terminal createTerminal()
SwingTerminal
if
you are running the program on a system with a graphical environment
available, otherwise a suitable text-based Terminal
, all with
default settings.public static Terminal createTerminal(Charset terminalCharset)
SwingTerminal
if
you are running the program on a system with a graphical environment
available, otherwise a suitable text-based Terminal
.public static Terminal createTerminal(InputStream terminalInput, OutputStream terminalOutput)
SwingTerminal
if
you are running the program on a system with a graphical environment
available, otherwise a suitable text-based Terminal
.public static Terminal createTerminal(InputStream terminalInput, OutputStream terminalOutput, Charset terminalCharset)
SwingTerminal
if
you are running the program on a system with a graphical environment
available, otherwise a suitable text-based Terminal
.public static SwingTerminal createSwingTerminal()
SwingTerminal
object, a simple Swing terminal emulator,
100 columns wide and 30 rows high.public static SwingTerminal createSwingTerminal(int columns, int rows)
SwingTerminal
object, a simple Swing terminal emulator,
with specified dimensions.columns
- Width of the terminal window, in text columns not pixelsrows
- Height of the terminal window, in text rows not pixelspublic static SwingTerminal createSwingTerminal(TerminalAppearance appearance)
SwingTerminal
object, a simple Swing terminal emulator,
100 columns wide and 30 rows high.appearance
- What kind of appearance to use for the terminalpublic static SwingTerminal createSwingTerminal(TerminalAppearance appearance, int columns, int rows)
SwingTerminal
object, a simple Swing terminal emulator,
with specified dimensions.appearance
- What kind of appearance to use for the terminalcolumns
- Width of the terminal window, in text columns not pixelsrows
- Height of the terminal window, in text rows not pixelspublic static UnixTerminal createUnixTerminal()
UnixTerminal
object using the default character set
and System.out
and System.in
for input and output of the
terminal.public static UnixTerminal createUnixTerminal(Charset terminalCharset)
UnixTerminal
object that is using a supplied character
set when converting characters to bytes.public static UnixTerminal createUnixTerminal(InputStream terminalInput, OutputStream terminalOutput)
UnixTerminal
object that is using supplied input and
output streams for standard out and standard in.public static UnixTerminal createUnixTerminal(InputStream terminalInput, OutputStream terminalOutput, Charset terminalCharset)
UnixTerminal
object that is using supplied input and
output streams for standard out and standard in, as well as a character
set to be used when converting characters to bytes.public static CygwinTerminal createCygwinTerminal()
public static CygwinTerminal createCygwinTerminal(Charset terminalCharset)
public static CygwinTerminal createCygwinTerminal(InputStream terminalInput, OutputStream terminalOutput)
public static CygwinTerminal createCygwinTerminal(InputStream terminalInput, OutputStream terminalOutput, Charset terminalCharset)
public static Terminal createTextTerminal()
public static Terminal createTextTerminal(InputStream terminalInput, OutputStream terminalOutput, Charset terminalCharset)
public static Screen createScreen()
Screen
backed by a default terminalpublic static Screen createScreen(Terminal terminal)
Screen
backed by a supplied Terminal
public static GUIScreen createGUIScreen()
GUIScreen
backed by a default terminalpublic static GUIScreen createGUIScreen(Terminal terminal)
GUIScreen
backed by a supplied Terminal
Copyright © 2015. All Rights Reserved.