Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

ARCHIVED: 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.

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document afux in domain all.
Last modified on December 01, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.