home *** CD-ROM | disk | FTP | other *** search
- ..pgno01
- ..foot60A4-##
- ..head02L──────────────────────────────────────────────────────────────────────
- ..head04L──────────────────────────────────────────────────────────────────────
- ..head03ABiosPrtChar
- ■ Description
-
- Send a character to the printer.
-
-
- ■ Summary
-
- VOID FPENTRY BiosPrtChar( CHAR Ch, INT2 PrtNo );
-
- Ch character to be printed.
-
- PrtNo printer number of printer to print to.
-
-
- ■ Remarks
-
- PrtNo 1 = LPT1:
- PrtNo 2 = LPT2:
- PrtNo 3 = LPT3:
-
-
- ■ See Also
-
- BiosPrtStat, DosPrtChar
-
-
- ■ Example
-
- #include <fpclib.h>
-
- main()
- {
- int i;
-
- for ( i = 1; i < 80; i++ )
- BiosPrtChar( 'A', 1 );
- }
-
- Here PrtChar will print the letter A out to printer one 80 times.
- ..page
- ..head03ABiosPrtInit
- ■ Description
-
- Initialize the printer
-
-
- ■ Summary
-
- INT2 FPENTRY BiosPrtInit( INT2 PrtNo );
-
- PrtNo number of printer to initialize.
-
-
- ■ Remarks
-
- This functions returns the status of the printer after the
- initialization process is completed.
-
-
- ■ Example
-
- #include <fpclib.h>
-
- main()
- {
- if ( BiosPrtInit( 1 ) & 16 )
- printf( "Printer initialized\n" );
- }
-
- The printer that is hooked up to the first parallel port will be
- initialized. (Refer to BiosPrtStatus for a description of the
- printer status byte).
- ..page
- ..head03ABiosPrtStatus
- ■ Description
-
- Returns the current status of the printer.
-
-
- ■ Summary
-
- INT2 FPENTRY BiosPrtStat( INT2 PrtNo );
-
- PrtNo is an integer representing the printer number to check
- the status for.
-
-
- ■ Remarks
-
- PrtStatus will return an integer giving the status of the printer
- using the following bit values.
-
- Bit Value Meaning
- ─── ───────── ───────────────────────────
- 0 - 1 - Time-out
- 1 - 2 - Not used
- 2 - 4 - Not used
- 3 - 8 - I/O error
- 4 - 16 - Printer selected
- 5 - 32 - Out-of-paper signal
- 6 - 64 - Acknowledgment from printer
- 7 - 128 - Printer not busy
-
-
- ■ Example
-
- #include <fpclib.h>
-
- main()
- {
- if ( BiosPrtStatus( 1 ) & 128 )
- BiosPrtchar( 'A', 1 );
- }
-
- If printer one is not busy then the letter A will be sent out to
- printer one.
- ..page
- ..head03ADosPrtChar
- ■ Description
-
- Send a character to the printer.
-
-
- ■ Summary
-
- VOID FPENTRY DosPrtChar( CHAR Ch );
-
- Ch character to be printed.
-
-
- ■ See Also
-
- BiosPrtChar, BiosPrtStat
-
-
- ■ Example
-
- #include <fpclib.h>
-
- main()
- {
- int i;
-
- for ( i = 0; i < 80; i++ )
- DosPrtChar( 'A' );
- }
-
- Here PrtChar will print the letter A out to printer one 80 times.
- ..page
-