[comp.lang.pascal] screen clearing

BRL102@PSUVM.BITNET (Ben Liblit) (09/12/89)

Is there any way to clear the screen in VS Pascal (running under VM/CMS)?  I've
tried:

     termOut (output);
       .
       .
       .
     page (output);

but it doesn't work.  Any ideas?

                                 Ben Liblit
                                 BRL102 @ PSUVM.BITNET

conan@vax1.acs.udel.EDU (Robert B Carroll) (09/13/89)

In article <89255.092925BRL102@PSUVM.BITNET> BRL102@PSUVM.BITNET (Ben Liblit) writes:
>Is there any way to clear the screen in VS Pascal (running under VM/CMS)?  I've
>tried:
Use escape sequences for your particular terminal type.
You could writeln a bunch of times.
-- 
conan@vax1.acs.udel.edu OR conan@192.5.57.1
*******************************************
****I only play DISC GOLF and drink tea****
*******************************************

DLB@PSUVM.BITNET (Dan Bernitt) (09/13/89)

The PAGE procedure is only for printer files.  To clear the screen,
Use the CMS procedure and issue the VMFCLEAR command:
    ...
    var rc:  integer;
        cmd:  string;
  procedure cms(const cmd:  string;  var rc:  integer);  external;
    ...
    ...
   cms('VMFCLEAR',rc);
    ...

Any CP/CMS command can be issued this way.