Configuring a Toshiba-p351 printer
egray at fthood.UUCP
egray at fthood.UUCP
Thu Nov 23 12:38:53 AEST 1989
> >The Toshiba then printed 132-columns of "X"'s and multiple page-ejects.
>
> That one got me, too. Your printer is set up to expect a CRLF combination
> at the end of each line (which is the way DOS stores ascii files) but unix
> stores only the LF character (the "newline" character).
>
> Since you'll probably want to continue to use the printer for DOS under
> VP/ix, you should _not_ change the printer switches. Instead, locate the
> file /usr/spool/lp/admins/lp/interfaces/dumb_1 (whew!) and make the
> following change:
>
> cat "$file" 2>&1
> cat "$file" |utod 2>&1
>
> utod is a filter that will convert LFs into CRLFs as the file is printed.
> It stands for unix-to-dos. There's a dtou also, BTW.
Ah yes, but there is a switch setting that works for both DOS and Unix.
Switch 2 position 4 is the "carriage return on paper movement" function.
It will translate a \n to \n\r for you. In, DOS a \n\r will come out
\n\r\r, but that won't effect output.
Emmet P. Gray US Army, HQ III Corps & Fort Hood
...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV
fthood!egray at uxc.cso.uiuc.edu Directorate of Engineering & Housing
Environmental Management Office
Fort Hood, TX 76544-5057
More information about the Comp.unix.i386
mailing list