int indent; /* indentation length */
int npages = 1;
int literal; /* print control characters */
+int onlcr; /* map nl->cr-nl */
char *name; /* user's login name */
char *host; /* user's machine name */
char *acctfile; /* accounting information file */
indent = atoi(&cp[2]);
break;
+ case 'r': /* map nl->cr-nl */
+ onlcr++;
+ break;
+
case 'c': /* Print control chars */
literal++;
break;
}
if (i < maxrep)
putc('\r', o);
- else
+ else {
+ if (onlcr)
+ putc('\r', o);
putc(ch, o);
+ }
if (++lineno >= length) {
fflush(o);
npages++;