Consultor Eletrônico



Kbase P26641: Problem trying display report in 132 columns
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/11/2003
Status: Unverified

FACT(s) (Environment):

UNIX

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

Problem trying display report in 132 columns

Report detail lines wrap at 80 columns

Protermcap file is using xterm and a user modified version xtermw with 132 columns defined

One program uses stty to set the columns to 132, another is called to display the report, and another is used to set the columns back to 80 characters wide

CAUSE:

An intermediate program used to display the report was changing the terminal type used incorrectly. This caused the program to only display the report with a display of 80 characters wide.

FIX:

Use the following to set the number of columns to 132:

UNIX silent "stty cols 132".
TERMINAL = "xtermw".
PAUSE 1 NO-MESSAGE.

Use the following to set the number of columns back to 80:

UNIX silent "stty cols 80".
TERMINAL = "xterm".
PAUSE 1 NO-MESSAGE.

Query the terminal type to switch when appropriate:
i.e.

if terminal = "xtermw" then do:
/* switch with above code */
end.