All Packages  This Package  Class Hierarchy  Class Search  Index

Class bmsi.fsp.TermInfo
java.lang.Object
   |
   +----bmsi.fsp.TermInfo

  Summary

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.


  Cross Reference

Returned By:
PScreen.getTermInfo()





  Constructors

· TermInfo

Summary  |  Top
   public TermInfo() 

Default constructor



  Methods

· getKeys

Summary  |  Top
   public static int[] getKeys() 

Return an array of indexes for the byte sequences sent by function keys.



· getNames

Summary  |  Top
   public String[] getNames() 


· getName

Summary  |  Top
   public String getName() 

Return the primary term name.



· getAltName

Summary  |  Top
   public String getAltName() 


· getDesc

Summary  |  Top
   public String getDesc() 


· getBaud

Summary  |  Top
   public int getBaud() 


· setBaud

Summary  |  Top
   public void setBaud(int baud) 

Set the baud rate used for computing delays.

See Also: tputs



· getBool

Summary  |  Top
   public boolean getBool(int idx) 


· getNum

Summary  |  Top
   public short getNum(int idx) 


· getStr

Summary  |  Top
   public byte[] getStr(int idx) 


· tparm

Summary  |  Top
   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


· tputs

Summary  |  Top
   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



· readTinfo

Summary  |  Top
   public void readTinfo(String file)  throws IOException


· setName

Summary  |  Top
   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