| Black |
|
About Karen Sam JP - PGP Keys - Vossen's Law - Firefox - MythTV Photos - Deck - SCUBA - Dolphins Security - Firewall Rules - Flypaper - GNATBox - Home - Home Net Security - Principles - Snort - Snort Books - Sec Tools - GenPass - Honeypot Stats - Firewall Stats Source - Perl Networking - Time - NAT - IP Calcs Linux - apt - Edutainment - SME Server - Backup (DI-30) Windows - Win Tools - Voodoo - Win. Shell Scripting - POSIX Redirection - Winlogcheck What's New Email me Email Form |
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 Source10 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 |
|
https://www.jpsdomain.org/public/source/blacksrc.html Copyright © 1995-2025, JP Vossen. All rights reserved. Last Modified: $Date: 2007-11-28 02:26:46 -0500 (Wed, 28 Nov 2007) $ |
|