about summary refs log tree commit diff stats
path: root/utils/lpansi/lpansi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lpansi/lpansi.txt')
-rw-r--r--utils/lpansi/lpansi.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/lpansi/lpansi.txt b/utils/lpansi/lpansi.txt
new file mode 100644
index 00000000..46738a2c
--- /dev/null
+++ b/utils/lpansi/lpansi.txt
@@ -0,0 +1,45 @@
+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 ***
Pull main aerc UI into widget' href='/akspecs/aerc/commit/lib/ui/ui.go?id=cab3771e17286788913255a6abe858b476166837'>cab3771 ^
80e891a ^

db1b2cd ^

80e891a ^









60b351b ^

80e891a ^
60b351b ^
7c63259 ^
60b351b ^
bcd03c4 ^
7c63259 ^
de122b1 ^
7c63259 ^
de122b1 ^
80e891a ^
77a0f68 ^
7c63259 ^


60b351b ^
7c63259 ^
60b351b ^
52eb38a ^


1170893 ^
7c63259 ^
f3158b3 ^



db1b2cd ^


bcd03c4 ^



de122b1 ^







60b351b ^
80e891a ^
db1b2cd ^

60b351b ^
7c63259 ^

77a0f68 ^
80e891a ^

80e891a ^


bcd03c4 ^
60b351b ^
77a0f68 ^
bcd03c4 ^




7c63259 ^





bcd03c4 ^






60b351b ^
bcd03c4 ^



80e891a ^
7c63259 ^
db1b2cd ^
7c63259 ^

db1b2cd ^
0847464 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127