Microsoft KB Archive/118919

{| = Increasing Number of Columns and/or Rows for Terminal =
 * width="100%"|

ID: Q118919

The information in this article applies to:


 * Microsoft FoxPro for UNIX, version 2.6

SUMMARY
In FoxPro for UNIX, the standard terminfo database entry for a specific terminal may not have the correct number of rows and/or columns required by an application. This article describes how you can edit the terminfo entry to modify the rows and/or columns used by a terminal emulation.

MORE INFORMATION
A common terminal emulation used in FoxPro for UNIX is a Wyse 60 terminal. Below is the terminfo source for wyse60 terminals in 25-line mode. The source was taken from the wy60-25 terminfo entry that is shipped with SCO UNIX.

Use this source to either change the existing terminfo entry, or create a new terminfo entry. Either append the following two lines to the end of the terminfo.src file that came with FoxPro for UNIX and resides in /usr/lib/foxpro, or write three lines out to a file and then run tic, the terminfo compiler, on the new source file.

NOTE: There is no way to uncompile a terminfo entry once it has been compiled with tic. However, all terminfo entries can be browsed by using more/cat/vi on the terminfo.src file in usr/lib/terminfo.

For example, to modify the Wyse 60 terminal emulation, you would do the following:

1. Log in as root.

2. Type:

cat wy60-25.src >> /usr/lib/foxpro/terminfo.src tic /usr/lib/foxpro/terminfo.src 3. To use this new entry, set your TERM or FOXTERM environment variable to  wy60fox-25 by using the following commands:

NOTE: TERM can be replaced with FOXTERM if FoxPro is the only application that requires a change to the terminal emulation. For more information about FOXTERM, please see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q118913 TITLE    : How to Set the FOXTERM Environment Variable

Bourne shell:

TERM=wy60fox-25 export TERM

C-shell:

setenv TERM wy60fox-25 Here is a partial example of what the wy60fox-25 terminfo entry would look like: wy60fox-25|wyse 60 for FoxPro 80-column 25-lines, lines#25, rs3=\EwG\Ee)$, nlab@, lh@, lw@, pln@, use=wy60fox,