There are times that a good screen warning of the Busy/Ready status of a printer is very helpful, particularly if a printer is shared between several computers.
Larry Crawford (UpDate magazine 10/93) has a nice program that includes a clever approach to this problem. In his article on 24-pin bit image graphics he used this line to give a flashing warning on line #0 of the bottom screen.
20 IF IN 127 <> 236 THEN INPUT;: PRINT #0; "PUT PRINTER ON LINE": PAUSE 2: GO TO 20
To explain; IN 127<>236 is simply the address of Port 127 in the Aerco scheme of things. This address is applicable to LKDOS but my Oliger IF uses 239. To check your system with the printer OFF, PRINT IN 127 should give 255 while with the printer on line, PRINT IN 127 will give the address of Port 127 for the readers equipment.
INPUT; clears the bottom two lines of the screen without clearing other lines like CLS will.
PRINT #0; “message”: PAUSE 2: GO TO 20 is a nice way to produce a flashing message at the bottom of the screen. If IN 127 is true (not 236) then the message flashes. If IN 127=236 (or your address) then the message is skipped as it is not needed.