diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-04 14:13:10 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-04 14:13:10 -0500 |
commit | 36a66292ee2ec3530d776892d22d6c5ace810ae0 (patch) | |
tree | ac50b496468f774172bdd3b76a6832ede18c44af /utils/lpansi | |
parent | 923c66ce35dd473a10713d8f44f30d9ad770a99b (diff) | |
download | lynx-snapshots-36a66292ee2ec3530d776892d22d6c5ace810ae0.tar.gz |
snapshot of project "lynx", label v2-7-1
Diffstat (limited to 'utils/lpansi')
-rw-r--r-- | utils/lpansi/lpansi.txt | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/utils/lpansi/lpansi.txt b/utils/lpansi/lpansi.txt deleted file mode 100644 index 46738a2c..00000000 --- a/utils/lpansi/lpansi.txt +++ /dev/null @@ -1,45 +0,0 @@ -README for lpansi.c 12/2/1993 -File: lpansi.c Author: Gary Day - gday@comp.uark.edu - -The problem: UNIX supplies a printing program called lp <filename> which - allows the user to print a text (or any really) file to a - printer. Unfortunately, that printer is attached to the UNIX - server which is not where the user usually is. In my case, it is - about 230 miles away. I needed a similar program that would - allow me to print to my home printer. - -The solution: The VT100 standard defines a printer on and off escape - sequence. [FYI: esc[5i is printer on, esc[4i is printer off.] - Lpansi is a VERY simple program that issues a printer on - sequence, opens the file sent as an argument, reads it character - by character, echos it to stdout (now your local printer) and - ends by sending a form feed and printer off command. - -Usage: I had several purposes in mind when I wrote this. The first was to - find a way to replace lp in a gopher client I had with something that - would print at home. I also wanted to be able to print text - files to my home printer directly from the UNIX prompt. A - natural extension of this is to add it to LYNX, and other printing - clients as your printer command. - -Syntax: lpansi <filename> - This program only accepts one filename as an argument, and not - command line options. It could be easily modified to accept more - but that will be up to you to do. It serves my needs. - -Thanks: Thanks go to Michael Seibel on the PINE development team for - helping me find the correct ANSI codes to turn off the printer. - I found out later that PINE distributes a similar program called - ansiprt which is supposed to do the same thing. Here, the source - code is provided so you may incorporate the concept directly in your - program. - -Disclaimer: [Everyone has one so...] I make no promises whatsoever about - how this will work for you. If you have VT100 and/or ANSI, it - should work just fine. If it doesn't, quit using it. :) This - program is free to use and modify, but try to keep my name with - it. I don't do that much cool stuff, so I need all the credit - I can get. Thanks. - - *** End of README for lpansi.c *** |