source:
trunk/athena/bin/lpr/filters/staff_ln03filter.c
@
52
Revision 52, 316 bytes checked in by jtkohl, 38 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[52] | 1 | #include <sys/file.h> |
2 | #include <sgtty.h> | |
3 | ||
4 | char *ris = "\033c"; /* Reset printer. */ | |
5 | char *lnm = "\033[20h"; /* Line feed new line mode on. */ | |
6 | ||
7 | main() | |
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.