public class ECMA48Backend extends GenericBackend
screen, sessionInfo, terminal
Constructor and Description |
---|
ECMA48Backend()
Public constructor will use System.in and System.out and UTF-8
encoding.
|
ECMA48Backend(java.lang.Object listener,
java.io.InputStream input,
java.io.OutputStream output)
Public constructor.
|
ECMA48Backend(java.lang.Object listener,
java.io.InputStream input,
java.io.OutputStream output,
int windowWidth,
int windowHeight,
int fontSize)
Public constructor.
|
ECMA48Backend(java.lang.Object listener,
java.io.InputStream input,
java.io.Reader reader,
java.io.PrintWriter writer)
Public constructor.
|
ECMA48Backend(java.lang.Object listener,
java.io.InputStream input,
java.io.Reader reader,
java.io.PrintWriter writer,
boolean setRawMode)
Public constructor.
|
flushScreen, getEvents, getScreen, getSessionInfo, hasEvents, reloadOptions, setListener, setTitle, shutdown
public ECMA48Backend() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
- if an exception is thrown when
creating the InputStreamReaderpublic ECMA48Backend(java.lang.Object listener, java.io.InputStream input, java.io.OutputStream output, int windowWidth, int windowHeight, int fontSize) throws java.io.UnsupportedEncodingException
listener
- the object this backend needs to wake up when new
input comes ininput
- an InputStream connected to the remote user, or null for
System.in. If System.in is used, then on non-Windows systems it will
be put in raw mode; shutdown() will (blindly!) put System.in in cooked
mode. input is always converted to a Reader with UTF-8 encoding.output
- an OutputStream connected to the remote user, or null
for System.out. output is always converted to a Writer with UTF-8
encoding.windowWidth
- the number of text columns to start withwindowHeight
- the number of text rows to start withfontSize
- the size in points. ECMA48 cannot set it, but it is
here to match the Swing API.java.io.UnsupportedEncodingException
- if an exception is thrown when
creating the InputStreamReaderpublic ECMA48Backend(java.lang.Object listener, java.io.InputStream input, java.io.OutputStream output) throws java.io.UnsupportedEncodingException
listener
- the object this backend needs to wake up when new
input comes ininput
- an InputStream connected to the remote user, or null for
System.in. If System.in is used, then on non-Windows systems it will
be put in raw mode; shutdown() will (blindly!) put System.in in cooked
mode. input is always converted to a Reader with UTF-8 encoding.output
- an OutputStream connected to the remote user, or null
for System.out. output is always converted to a Writer with UTF-8
encoding.java.io.UnsupportedEncodingException
- if an exception is thrown when
creating the InputStreamReaderpublic ECMA48Backend(java.lang.Object listener, java.io.InputStream input, java.io.Reader reader, java.io.PrintWriter writer, boolean setRawMode)
listener
- the object this backend needs to wake up when new
input comes ininput
- the InputStream underlying 'reader'. Its available()
method is used to determine if reader.read() will block or not.reader
- a Reader connected to the remote user.writer
- a PrintWriter connected to the remote user.setRawMode
- if true, set System.in into raw mode with stty.
This should in general not be used. It is here solely for Demo3,
which uses System.in.java.lang.IllegalArgumentException
- if input, reader, or writer are null.public ECMA48Backend(java.lang.Object listener, java.io.InputStream input, java.io.Reader reader, java.io.PrintWriter writer)
listener
- the object this backend needs to wake up when new
input comes ininput
- the InputStream underlying 'reader'. Its available()
method is used to determine if reader.read() will block or not.reader
- a Reader connected to the remote user.writer
- a PrintWriter connected to the remote user.java.lang.IllegalArgumentException
- if input, reader, or writer are null.Copyright © 2019 Kevin Lamonte. Licensed MIT.