Mail Archives: djgpp/1995/05/21/06:16:16
> How do I print a node from w/i INFO under DOS?
>
> The documentation suggests having to set
> an environment INFO-COMMAND-PRINT
> (or something like that) but
> I cannot figure out what to set it to?
The stand-alone Info program expects the environment variable
INFO_PRINT_COMMAND to point to the name of a _program_ to which
Info will pipe the text of the node you want to print. That
program should then send the piped text to a printer. In other
words, you can set INFO_PRINT_COMMAND to be the name of any
program that can read text from its standard input and will write
it to a printer. The default is lpr, but many PCs probably don't
have such a beast installed. If you are one of those who don't
have lpr, or any other program which writes standard input to a
printer, then you can use any program which will write it's stdin
to stdout instead. I use cat (from GNU Textutils, you can find it
in the GNUish directory on SimTel mirrors, if you don't have one).
I set the above environment variable thusly:
set INFO_PRINT_COMMAND=cat
I then invoke Info like this:
info > prn
(Info writes to the screen with direct screen I/O, so this redirection
doesn't affect what you see on-screen, but it has a side effect of
redirecting stdout of any child program Info invokes to the printer.)
Then I print any node with the ``M-x print-node'' command. It really
works!
- Raw text -