Black

Programs to print a BLACK page to an HP LaseJet.


C Source

#include <stdio.h>
/* Program to print a BLACK page to an HP LaseJet */
main()
{  /* begin of main */

        printf("\n\n\nBlack    PC Computing October 1991");
        printf("\n\nNow printing black page...\n");

        fprintf(stdprn,"%c%s",'\33',"&l0E");
        fprintf(stdprn,"%c%s",'\33',"&l0L");
        fprintf(stdprn,"%c%s",'\33',"*p0x0Y");
        fprintf(stdprn,"%c%s",'\33',"*c2400a3300B");
        fprintf(stdprn,"%c%s",'\33',"*c0P");
        fprintf(stdprn,"%c%s",'\33',"E");

}  /* end of main */

BASIC Source

10 REM Program to print a BLACK page on an HP LaserJet
20 PRINT : PRINT : PRINT "BLACK PC Computing October 1991"
30 PRINT : PRINT "Now printing Black page..."
40 OPEN "lpt1" FOR OUTPUT AS #1
50 PRINT #1, CHR$(27) + "&l0E"
60 PRINT #1, CHR$(27) + "&l0L"
70 PRINT #1, CHR$(27) + "*p0x0Y"
80 PRINT #1, CHR$(27) + "*c2400a3300B"
90 PRINT #1, CHR$(27) + "*c0P"
100 PRINT #1, CHR$(27) + "E"
110 CLOSE #1