# Adding New Terminal Types

Before adding a new terminal type, check the /appl/fp/termcap file to find a similar terminal type or one that is reasonably close to your terminal type. You can then copy the similar terminal type to a new name in the termcap file so that you don't have to start from scratch when adding a new terminal type. Check your terminal's manual to find the proper sequences for each code.

Note: Case is significant when writing or editing termcap files.

Refer to the "Termcap Function Codes" and "Termcap Graphic Codes" tables for codes to be set equal to the strings of keys that filePro sends to the terminal for each function. These first sets of codes are standard entries and listed for your convenience.

The "filePro Plus Codes" and "Key Label Codes" tables list special codes related to filePro. The "Key Label Codes" table, starting with "LO", directly correspond to the "P" series codes. These codes tell filePro what to display in the screen prompts for each of the corresponding "P" series codes.

A typical termcap definition starts with comment lines and a title. Then the codes are added with the applicable sequences. The following is an example for a LINUX termcap definition.

# Termcap for LINUX created on 02/05/2000
#
linux|clinux|Linux Console:\
:al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
:dc=\E[P:dl=\E[M:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
:nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
:kh=\E[H:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\
:GS=\E[12m:GE=\E[10m:\
:GV=\263:GH=\304:\
:G1=\277:G2=\332:G3=\300:G4=\331:GZ=\376:\
:GU=\301:GD=\302:GC=\305:GR=\303:GL=\264:RT=^J:\
:L0=F1:L1=F2:L2=F3:L3=F4:L4=ESC ESC:L5=F5:\
:L6=Pg Up:L7=Pg Dn:L8=ESC TAB:L9=TAB:LA=Ctrl-O:\
:LB=F6:LC=Ctrl-L:LD=F7:\
:LE=F8:LG=Ctrl-Z:LH=F9:LY=Ctrl-C:LZ=Enter:\
:P0=\E[[A:P1=\E[[B:P2=\E[[C:P3=\E[[D:\
:P4=\E\E:P5=\E[[E:P6=\E[5~:P7=\E[6~:P8=\E^I:P9=^I:\
:PA=^O:PB=\E[17~:PC=^L:PD=\E[18~:PE=\E[19~:PG=^Z:PH=\E[20~:\
:PJ=\E[21~:LJ=F10:PV:

For more information, see the section in your operating system manual or a WebSite that describes preparing or revising termcap entries.