1
! @(#)keyshow.prg 19.1 (ES0-DMD) 02/25/03 13:20:14
2
! @(#)keyshow.prg 19.1 (ESO) 02/25/03 13:20:14
3
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
5
!.COPYRIGHT (C) 1991 European Southern Observatory
7
!.AUTHOR Pascal Ballester, ESO - Garching
8
!.KEYWORDS Session, Manager
9
!.PURPOSE Command SHOW/SESSION
10
!.VERSION 1.0 Creation 10-SEP-1991 PB
12
!-------------------------------------------------------
14
define/local line/C/1/132 " "
15
line(1:132) = MID$LINE(1:132)
17
define/local tlen/I/1/1 0
18
define/local tsta/I/1/1 0
19
define/local tend/I/1/1 0
20
define/local I/I/1/1 0
22
tsta = M$INDEX(line," ") + 1
24
define/local text/C/1/132 " " ALL
25
if tsta .gt. 1 text(1:132) = line({tsta}:132)
29
if text({I}:{I}) .eq. "." then
35
define/local QUOT/C/1/1 "
37
IF text(1:1) .EQ. QUOT THEN
43
IF SESSDISP(1:1) .NE. "Y" RETURN
45
SESSNLIN = LOG(11) - 1
46
SESSLINE = SESSLINE + 1
47
IF SESSLINE .GE. SESSNLIN THEN
49
INQUIRE/KEYW ANSW/C/1/3 "Hit return to continue, q + return to quit "
50
IF AUX_MODE(7) .NE. 0 THEN
51
IF ANSW(1:1) .EQ. "Q" RETURN/EXIT