Progress
Language Reference


TERMINAL Statement

Interfaces
OS
SpeedScript
All
All
No

Changes terminal type during program execution. On UNIX, changes the value of the TERM environment variable.

SYNTAX

TERMINAL = termid 

termid

A terminal type string. The termid can also be an expression. Progress returns an error message if termid is not defined in the PROTERMCAP file. However, termid can be the word TERMINAL. The line TERMINAL=TERMINAL reinitializes the terminal.

EXAMPLE

This procedure changes the terminal screen width from 80 columns to 132 columns, then back again.

r-seterm.p
FOR EACH customer:
  DISPLAY customer.
END.

TERMINAL = "wy60w".
OUTPUT TO TERMINAL PAGED.
FOR EACH customer:
  DISPLAY customer WITH WIDTH 132.
END.

OUTPUT CLOSE.
TERMINAL = "wy60".
DISPLAY "Back to 80 columns." WITH CENTERED. 

NOTES

SEE ALSO

TERMINAL Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095