Consultor Eletrônico



Kbase 13296: How to Set VT Terminals to Display in Wide Mode
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/02/2004
Status: Verified

GOAL:

How to set up a VT terminal to display in wide mode (132 characters across the screen).

FIX:

Modify the PROTERMCAP file.
1) Make a copy of the VT100 entry.

2) In the new entry, change the first line to identify the new
terminal type. For example, vt100w.

3) Add the following lines to the entry:

:ti=\E[?3h:\
:co#132:\
:te=:\

4) Then set the PROTERMCAP:

-- On UNIX platforms,

a) Set the environmental variable for your PROTERMCAP. Syntax
varies among flavors of UNIX, but is should be something similar
to, "PROTERMCAP=$DLC/protermcap; export PROTERMCAP"

b) Then set your TERM variable to VT100w; that is,
"TERM=VT100w; export TERM"

c) Also check to see how you have your row and column settings
configured. This can be verified by using "stty -a".

-- On VMS platforms,

a) Define the logical PROTERMCAP to point to the modified
PROTERM.DAT file. For example:
$DEFINE PROTERMCAP USER:[DLC]PROTERM.DAT

b) Define the logical PROTERM to specify the terminal type with a
width of 132. For example: $DEFINE PROTERM VT100W

c) Set up the terminal characteristics to allow a wider width.
For example: $SET TERM/DEV=VT100/WIDTH=132

You should now be able to run Progress and display information
to a width of 132. Example:

DISPLAY FILL("$", 132) FORMAT "X(132)" WITH WIDTH 132 NO-BOX NO-LABEL.

NOTE: It is also possible to switch terminal settings from within a Progress application by using term="VT100w".