home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!wupost!cs.utexas.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
- From: SEB1525@MVS.draper.com (Steve Bacher)
- Subject: Re: Vmfclear for REXX/MVS
- Message-ID: <19921119125541SEB1525@MVS.draper.com>
- Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
- Nntp-Posting-Host: mvs.draper.com
- Organization: Draper Laboratory
- References: <92322.185550VMOPER@EVALUN11.BITNET>
- Date: Thu, 19 Nov 1992 17:55:00 GMT
- Lines: 53
-
-
- Originally posted to IBM-MAIN (newsgroup bit.listserv.ibm-main):
-
- Some of the screen-clearing assembler code floating around works by
- just sending out a screen-clearing TPUT. This isn't a good idea if
- done by itself, because any line-mode message that gets sent to your
- terminal between the time the user presses ENTER and the time the
- screen gets cleared will be lost.
-
- For this reason, it is imperative that you obey the laws of TSO
- full-screen mode, just as when you display a full-screen panel.
-
- The following code will clear the screen whether you're running
- TSO/VTAM or TSO/TCAM. It also ignored ISPF and Session Manager,
- both of which have their own recommended commands to clear the screen.
-
-
- STFSMODE INITIAL=YES SET FULL SCREEN MODE FOR VTAM
- LTR 15,15 IF NOT A VTAM TERMINAL
- BNZ TCAMCLR THEN DO A TCAM SCREEN CLEAR
- * ELSE DO A VTAM SCREEN CLEAR
- TPUT CLR,L'CLR,FULLSCR,,HOLD
- STLINENO LINE=1 INSURE LINE MODE OUTPUT GOES TO TOP
- STFSMODE OFF SET FULL SCREEN MODE OFF
- TCLEARQ INPUT FLUSH PA2 AID QUEUED BY VTIOC
- B DONE
- TCAMCLR DS 0H NOT VTAM - DO TCAM SCREEN CLEAR
- TPUT FSON,L'FSON,FULLSCR,,HOLD
- TPUT FSOFF,L'FSOFF,FULLSCR,,HOLD
- DONE DS 0H
- ...
- CLR DC X'401140403C40400013'
- FSON DC X'40115D7F1140403C40400013'
- FSOFF DC X'40115D7E1140403C40400013'
- ...
-
- Leonard Woren has suggested a simpler screen clearing program for VTAM:
-
- STLINENO MODE=OFF,LINE=1
-
- "This is how IBM suggests clearing the screen. Note that this is ALL
- that's needed! VTAM does the rest."
-
- The ISPF "CONTROL DISPLAY LINE START(1)", which is supposed to issue a
- similar STLINENO, also works.
-
- I haven't been happy with the timing on STLINENO requests, though,
- which is why the TPUT in the above code has a HOLD on it.
-
-
- --
- Steve Bacher (Batchman) Draper Laboratory
- Internet: seb@draper.com Cambridge, MA, USA
-