I was able to interact with printer using interrupt call 21
and using int86 function but i'm not able to clear the printer buffer.Is there any way that we can clear printer buffer using C language
Pl. check the printer manual for the code to be sent to the printer. Each printer normally follows ESC/P (EPSON sequence, for the Dot Matrix printers, or the HP sequence for laserjet/deskjet series.
They will contain a code to initialise the printer which needs to be invoked thru the program to clear the print buffer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.