* printing linux files
@ Charles Hallenbeck
` Jude Dashiell
` wlestes
0 siblings, 2 replies; 12+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: Blind Linux Discussions
Can anyone help me with a printing problem?
My printer apparently requires both a CR and an LF at the end of every
line, and while it may have a selectable feature to change that, I would
like to leave the printer settings alone. I use it in DOS regularly too.
When I use LPR in Linux to print a text file, say a message received in
Pine or a "print to a local file" item from Lynx, the printer malfunctions
because only an LF appears at the end of each line. I have read a lot of
documentation about LPR, PR, and the like, but find no discussion of this
end-of-line convention. Does anybody know how to tell LPR (or some other
demon (pun intended)) to please use a CR as well as an LF on each line?
Chuck -- Second Sight Software
Now using Linux and PINE
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
printing linux files Charles Hallenbeck
@ ` Jude Dashiell
` Fredrik Larsson
` wlestes
1 sibling, 1 reply; 12+ messages in thread
From: Jude Dashiell @ UTC (permalink / raw)
To: Charles Hallenbeck; +Cc: Blind Linux Discussions
Hi Charles,
see if you can find a program called unix2dos on the system.
You send your file through unix2dos then onto the printer and the job is
done.
------------------------------------------------------------------------
jude <jdashiel@clark.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Jude Dashiell
@ ` Fredrik Larsson
0 siblings, 0 replies; 12+ messages in thread
From: Fredrik Larsson @ UTC (permalink / raw)
To: Blind Linux Discussions
On Tue, 8 Dec 1998, Jude Dashiell wrote:
> Hi Charles,
>
> see if you can find a program called unix2dos on the system.
> You send your file through unix2dos then onto the printer and the job is
> done.
There should be another way as well. There is a file called /etc/printcap
that lets you set printer capabilities. I think there is some option there
that can change the end-of-line behaviour. See man 5 printcap for details.
Fredrik
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
printing linux files Charles Hallenbeck
` Jude Dashiell
@ ` wlestes
` Charles Hallenbeck
` Editing through a Terminal? Alfred Puzzuoli
1 sibling, 2 replies; 12+ messages in thread
From: wlestes @ UTC (permalink / raw)
To: 2ndsight; +Cc: blinux-list
The Printing-HOWTO has the information you want.
To summarize:
You need a print filter--a program that accepts your files as input
and adjusts them so your printer can understand them. If you are
running redhat, you might investigate the rhs-printfilters
package. you also might wish to have a look at a package i think is
called dj-printfilters -- on sunsite in pub/Linux/systems/printeing or
something similar.
--will
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` wlestes
@ ` Charles Hallenbeck
` Jason Castonguay
` Editing through a Terminal? Alfred Puzzuoli
1 sibling, 1 reply; 12+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: wlestes; +Cc: blinux-list
Hi,
Thanks for the info. I am using Slackware, and found some hints in
/etc/printcap, where there is a two line Perl script creating a filter for
adding CR to LF (or rather replacing each LF with CR,LF) and so now I need
to experiment with hooking things together.
Chuck -- Second Sight Software
Now using Linux and PINE
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Charles Hallenbeck
@ ` Jason Castonguay
` Charles Hallenbeck
` Luke Davis
0 siblings, 2 replies; 12+ messages in thread
From: Jason Castonguay @ UTC (permalink / raw)
To: Charles Hallenbeck; +Cc: blinux-list
Hi there, Charles.
If you are using SlackWare, there is a program called 'todos'. This
program will take a file and turn the cr's to crlf sequences. Here's an
example using "file" in substitute for an actual file name:
todos < file > file
This will take the file directed to and output it into the file you
specify. If you type:
todos < file | lpr
This will output the converted file to the 'lpr' command.
Note: there is a program (fromdos) which does the reverse (converts crlf
sequences to just cr).
I hope this helps.
Best regards,
Jason
On Wed, 9 Dec 1998, Charles Hallenbeck wrote:
> Hi,
> Thanks for the info. I am using Slackware, and found some hints in
> /etc/printcap, where there is a two line Perl script creating a filter for
> adding CR to LF (or rather replacing each LF with CR,LF) and so now I need
> to experiment with hooking things together.
>
> Chuck -- Second Sight Software
> Now using Linux and PINE
>
>
>
> ---
> Send your message for blinux-list to blinux-list@redhat.com
> Blinux software archive at ftp://leb.net/pub/blinux
> Blinux web page at http://leb.net/blinux
> To unsubscribe send mail to blinux-list-request@redhat.com
> with subject line: unsubscribe
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Jason Castonguay
@ ` Charles Hallenbeck
` wlestes
` Luke Davis
1 sibling, 1 reply; 12+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: Jason Castonguay; +Cc: blinux-list
Hi Jason,
Many thanks for the info on todos and fromdos. Just what I was looking
for!
Chuck -- Second Sight Software
Now using Linux and PINE
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Charles Hallenbeck
@ ` wlestes
0 siblings, 0 replies; 12+ messages in thread
From: wlestes @ UTC (permalink / raw)
To: blinux-list
For the curious, one can implement todos and fromdos as follows
sed 's/$/
/'
(yes, that's a literal carriage return before the final /)
and
tr -d '\r'
--will
^ permalink raw reply [flat|nested] 12+ messages in thread
* Editing through a Terminal?
` wlestes
` Charles Hallenbeck
@ ` Alfred Puzzuoli
` Charles Hallenbeck
1 sibling, 1 reply; 12+ messages in thread
From: Alfred Puzzuoli @ UTC (permalink / raw)
To: blinux-list
Hi,
I'm a relative newbie to Linux so may be covering ground that has already
been dealt with here. I don't have a linux box of my own as of yet but do
have access to a couple on the net. The problem that I'm having is that
when I'm connected to one of these via telnet, I'm finding that it's almost
impossible to accurately edit any files. I am doing this from dos, with
artic Business vision for access. I have used two terminal programs, Cutcp
telnet, and Mskermit. i have checked my local and remote terminal
settings and to the best of my knowledge, they're both correctly set to
vt100. The editor with which I have been working is Pico. The problem is
that if I arrow accross a line of text, Artic will not accurately track
the cursor. As I arrow, characters are spoken; However the last character
spoken, is usually not the last character upon which the cursor is resting.
Does anyone have any ideas as to how I might get around this? I've
resorted to downloading files to my machine, editing them and then
uploading them to the linux box once again. Any help would be appreciated.
REgards,
Al
Regards,
Al
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Editing through a Terminal?
` Editing through a Terminal? Alfred Puzzuoli
@ ` Charles Hallenbeck
0 siblings, 0 replies; 12+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: blinux-list
The problem is not intrinsic to Linux or to the use of terminals... I
access my Linux box through a serial terminal connection and use VI with
no difficulty. However my serial terminal is hard wired and does not need
a telnet connection. Telix is the software on the terminal, with our
provox screen reader.
You might try occasionally entering "control L" to "repaint the screen"
and see if that gets things back into synch.
Chuck -- Second Sight Software
Now using Linux and PINE
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Jason Castonguay
` Charles Hallenbeck
@ ` Luke Davis
` Charles Hallenbeck
1 sibling, 1 reply; 12+ messages in thread
From: Luke Davis @ UTC (permalink / raw)
To: blinux-list; +Cc: Charles Hallenbeck
There is todos/fromdos, unix2dos/dos2unix, and d2u/u2d.
They all work.
The latter two sets can be obtained from sunsite; I don't know about
(to|from)dos.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing linux files
` Luke Davis
@ ` Charles Hallenbeck
0 siblings, 0 replies; 12+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: Luke Davis; +Cc: blinux-list
The first two were included in Slackware 3.5 and solved my problem nicely.
Since Pine pipes its text to a print command, I simply made my print
command "todos | lpr" and it works fine. Lynx on the other hand wants a
command that references "%s" so that one became "todos < %s | lpr" and
that one works fine also. On Mon, 14 Dec 1998, Luke Davis wrote:
> There is todos/fromdos, unix2dos/dos2unix, and d2u/u2d.
> They all work.
> The latter two sets can be obtained from sunsite; I don't know about
> (to|from)dos.
>
> ---
> Send your message for blinux-list to blinux-list@redhat.com
> Blinux software archive at ftp://leb.net/pub/blinux
> Blinux web page at http://leb.net/blinux
> To unsubscribe send mail to blinux-list-request@redhat.com
> with subject line: unsubscribe
>
>
Chuck -- Second Sight Software
Now using Linux and PINE
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
printing linux files Charles Hallenbeck
` Jude Dashiell
` Fredrik Larsson
` wlestes
` Charles Hallenbeck
` Jason Castonguay
` Charles Hallenbeck
` wlestes
` Luke Davis
` Charles Hallenbeck
` Editing through a Terminal? Alfred Puzzuoli
` Charles Hallenbeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).