All Packages This Package Class Hierarchy Class Search Index
Class bmsi.fsp.TermInfo
java.lang.Object
|
+----bmsi.fsp.TermInfo
public class TermInfo
extends java.lang.Object
{
// Constructors 1
public TermInfo();
// Methods 14
public static int[] getKeys();
public static byte[] tparm(byte[], int[]);
public String getAltName();
public int getBaud();
public boolean getBool(int);
public String getDesc();
public String getName();
public String[] getNames();
public short getNum(int);
public byte[] getStr(int);
public void readTinfo(String) throws IOException;
public void setBaud(int);
public void setName(String) throws IOException;
public void tputs(OutputStream, byte[], int) throws IOException;
}
Read SysV terminfo files.
- Author:
-
Stuart D. Gathman
Copyright (C) 2000 Business Management Systems, Inc.
- Returned By:
- PScreen.getTermInfo()
public TermInfo()
Default constructor
public static int[] getKeys()
Return an array of indexes for the byte sequences sent by
function keys.
public String[] getNames()
public String getName()
Return the primary term name.
public String getAltName()
public String getDesc()
public int getBaud()
public void setBaud(int baud)
Set the baud rate used for computing delays.
See Also:
tputs
public boolean getBool(int idx)
public short getNum(int idx)
public byte[] getStr(int idx)
public static byte[] tparm(byte[] str,
int[] val)
Interpret parameterized strings. A parameterized string is a mini
program with operations introduced by '%'. See the terminfo
documentation. This implementation does not support string
operations, or general printf formatting. FIXME: at least support
%2d
and %02d
.
Parameter | Description |
str | the terminfo string to interpret |
val | the parameters |
- Returns:
- the output string with parameters substituted
- Throws: ArrayIndexOutOfBoundsException
- for missing parameters or
stack underflow or overflow
public void tputs(OutputStream out,
byte[] str,
int lines) throws IOException
Transmit a terminfo string and interpret timing delays. Delays are
inserted by enclosing a number of milliseconds in $< >
.
Up to 1 digit precision can be used (for tenths of a millisecond).
Following the number with '*' multiplies by the number lines
affected. Delays are implemented by sending an appropriate number
of NULs to the output as computed from the baud rate.
Parameter | Description |
out | the output stream |
str | the terminfo string |
lines | the number of lines affected |
public void readTinfo(String file) throws IOException
public void setName(String term) throws IOException
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7