Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 2.2 Screen management Up: 2 General tools Prev: 2 General tools Contents


2.1 Defining the output terminal

Before an image can appear on a terminal's screen, the terminal must first be selected. This selection, performed by programs DEVICE  and DEFDEV , must imperatively precede the description of the objects.

To choose a terminal interactively  and initialize it totally for input and output, we use DEFDEV 

      SUBROUTINE DEFDEV(DEVIC, PAROUT, PARIN, CPARAM)
      INTEGER DEVIC, PAROUT(10), PARIN(10) 
      CHARACTER*(*) CPARAM

which defines a terminal interactively; this subroutine poses ad hoc questions and initializes the terminal for output and, in certain cases, input.

Input:
DEVIC, where:

      SUBROUTINE DEVICE(N, IPARAM, CPARAM)
      INTEGER N, IPARAM(*)
      CHARACTER*(*) CPARAM

Input:
N, the terminal number, where:

Remark:
DEVICE only initializes the terminal on exit. To initialize the terminal on entry, we need to use program DEVICI  described in the section on input management.

Subroutine ENDDEV  indicates the end of utilization  of a terminal.

 

      SUBROUTINE ENDDEV(N)
      INTEGER N

Input:
N, the terminal number.


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 2.2 Screen management Up: 2 General tools Prev: 2 General tools Contents