source: trunk/athena/bin/lpr/filters/ln03filter.c @ 17

Revision 17, 316 bytes checked in by builder, 39 years ago (diff)
Initial revision
Line 
1#include <sys/file.h>
2#include <sgtty.h>
3
4char *ris = "\033c";            /* Reset printer. */
5char *lnm = "\033[20h";         /* Line feed new line mode on. */
6
7main()
8{
9    register int count;
10    char buf[1024];
11   
12    write(1, ris, 2);
13    write(1, lnm, 5);
14    while ((count = read(0, buf, 1024)) > 0) write(1, buf, count);
15}
Note: See TracBrowser for help on using the repository browser.