Indiana University
University Information Technology Services
  
What are archived documents?

In Elm, how can I print messages to my local printer like Pine can?

Note: Elm is not available on any UITS systems.

There is a utility called ansiprt that you can use in a pipe to print to your local printer. It wraps its input with the ANSI media-copy escape codes and returns it, trusting your terminal to behave correctly. To get Pine's behavior in Elm, you can configure Elm's "P)rint mail using" print option as:

cat %s | /usr/local/bin/ansiprt

Note: To print to your local printer in Pine, you need to define it in the entry "printer=attached-to-ansi" in the Setup menu or your .pinerc file.

If you are unable to find the ansiprt program on your Unix host, you can create a copy by the method described in In Unix, how do I print a file to my local printer? To point Elm to your copy of ansiprt, from Elm, press  o  for the options menu, and then  p  to change Elm's print command. Enter the following line for the print command: ~/bin/ansiprt Type  >  to save the change, and then  i  to return to the index.

Also see:

This is document afux in domain all.
Last modified on December 03, 2007.
Please tell us, did you find the answer to your question?