Terminal Transformation

 

The table given below is a list of parameters grouped under the TRANSFORMATION_TABLE tag, with a brief description, which can be used for terminal translation.

 

Tag Description

TRANSFORMATION-TABLE

It contains the list of TABLEs identified by their names and has VERSION attribute.

TABLE

It contains the list of transformation codes which have the following attributes:

  • NAME: identifies a particular table.

  • TYPE: specifies the way in which the codes can be interpreted, i.e., in alphanumeric (alpha), or byte value in hex (byteHex), or byte value in decimal (byteDec)

TRANSFORM

It contains the actual codes to be transformed. It has the following attributes:

  • CODE: contains the space separated list of codes.

  • VALUE: contain the space separated list of code to which the codes in the code attribute is to be transformed.

  • TYPE: specifies the way in which the codes can be interpreted, i.e., in alphanumeric (alpha), or byte value in hex (byteHex), or byte value in decimal (byteDec).

 

For complete details, please refer to TransformationTable.dtd available in <CLI Home>/conf directory.

 

The following example explains the transformation of terminal codes between VT100 and IBM.

 

<TRANSFORMATION-TABLE>

<TABLE NAME="vt100ToIbm" TYPE="byteHex">

<!--clear sequence-->

<TRANSFORM CODE="1b 5b 48 1b 5b 4a" VALUE="1b 4b"/>

<!--clear tabs-->

<TRANSFORM CODE="1b 5b 33 67" VALUE="1b 31"/>

<!--Cursor home-->

<TRANSFORM CODE="1b 5b 48" VALUE="1b 48"/>

<!--Cursor down-->

<TRANSFORM CODE="1b 4f 42" VALUE="1b 4f"/>

<!--Cursor left-->

<TRANSFORM CODE="1b 4f 44" VALUE="1b 44"/>

<!--Cursor right-->

</TABLE>

</TRANSFORMATION-TABLE>

 

This table can be used to perform escape codes transformation from vt100 terminal to an IBM terminal.

 

 



Copyright © 2009 ZOHO Corp. All Rights Reserved.