File: FAQ

package info (click to toggle)
vtprint 2.0.2-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 488 kB
  • sloc: ansic: 1,587; sed: 733; makefile: 292; sh: 96
file content (660 lines) | stat: -rw-r--r-- 16,224 bytes parent folder | download | duplicates (7)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660









                      TThhee vvttpprriinntt FFAAQQ

                      _G_a_r_r_e_t_t _D_'_A_m_o_r_e
                _<_g_a_r_r_e_t_t_@_s_c_i_e_n_c_e_s_._s_d_s_u_._e_d_u_>
                 San Diego State University
                        Version 0.9
                       June 19, 1994


                          _A_B_S_T_R_A_C_T


          This document attempts to address some of the
     most common questions relating to the vtprint pro-
     gram.   However,  this document is still very much
     under development, so  there  may  be  significant
     omissions  or  errors.   The author apologizes for
     any such errors or omissions, and kindly  requests
     that   the  reader  pass  on  any  corrections  or
     requests for clarification or more data to him.


































                        19 June 1994





                             -2-


11..   AAbboouutt vvttpprriinntt





1.1. What is vvttpprriinntt?



     vvttpprriinntt is a program that makes it possible  to  obtain
     seamless  printing  from  a remote host to a printer at
     home without  requiring  a  TCP/IP  connection  to  the
     remote  machine  or  root access on the remote machine.
     It will communicate over a serial  line  or  a  regular
     network  connection.   Other  methods of connection may
     also be possible.

     vvttpprriinntt runs on the remote system (currently only UNIX-
     like  systems  are  supported).  Software on your local
     machine may vary considerably.


1.2. Who writes/supports vvttpprriinntt?



     The author of vvttpprriinntt is Garrett D'Amore.   He  can  be
     reached at <garrett@sciences.sdsu.edu>.  He is actively
     supporting vvttpprriinntt users, and is working on new  devel-
     opment with vvttpprriinntt.


1.3. Where do I get vvttpprriinntt?



     The  original  source  archive for vvttpprriinntt is available
     via ftp.  The current version (as of June 19, 1994)  is
     2.0  and  can be found at ftp.sdsu.edu in //ppuubb//vvttpprriinntt//
     as    a    GNU    ggzziipp    compressed    tar     archive
     (vvttpprriinntt--22..00..ttaarr..ggzz).  Currently, only a source distri-
     bution is being made available.   Also,  users  without
     ftp  capabability  should  contact  the  author to make
     author arrangements.


1.4. What do I need to use vvttpprriinntt?



     Well, to compile and install it, you  need  an  ANSI  C
     compiler.   (If your site has it installed already, you
     don't need to worry about this.)



                        19 June 1994





                             -3-


     To use it, you need a terminal (or  terminal  emulator)
     that supports printer control escape sequences.  If you
     have  a  terminal  or  emulator  that  supports  escape
     sequences  other  than  those  already in listed in the
     vvttpprriinnttccaapp file, then you will also need to  know  what
     those sequences are.  (Check your terminal's documenta-
     tion.)

     You also need (obviously) a printer and  some  sort  of
     connection to the remote host.



22..   IInnssttaalllliinngg vvttpprriinntt





2.1. How do I install vvttpprriinntt??



     If  you  are  have administrative powers on your remote
     host, then please read the file IINNSSTTAALLLL included in the
     original  source archive and follow the directions out-
     lined there.


2.2. What if I don't have root access on the remote host?



     If you don't have root access on the remote  host,  you
     can still install vvttpprriinntt.   Instead of using the "make
     install"  and  "make  install.man"  options,  use   the
     options  "make userinstall" and "make userinstall.man".
     This will place the necessary files in a suitable loca-
     tion for a user to use a private copy of vvttpprriinntt.


2.3. How do I set up my account to use vvttpprriinntt?



     If your system administrator installed a master copy of
     vvttpprriinntt, then it should be  immediately  available  for
     use.  However, if you installed a private copy, or your
     system administrator did not install it  in  a  general
     location,  you  will need to change a few environmental
     variables.

     You should verify that vvttpprriinntt is on your PATH and that
     the  man pages are locatable somewhere on your MANPATH.



                        19 June 1994





                             -4-


     If you installed a personal copy, you will also need to
     set  the  environmental variable VTPRINT to contain the
     string "-L _<_f_u_l_l _p_a_t_h _t_o _v_t_p_r_i_n_t_c_a_p_>".  You may wish to
     add  other  options to the VTPRINT variable to set up a
     default operating mode for vvttpprriinntt.   Please  read  the
     man page for details on what options are available.



33..   UUssiinngg vvttpprriinntt





3.1. What help is available for using vvttpprriinntt?



     Besides  the  FFAAQQ that you are reading now, there are a
     number of resources that  can  help  you  use  vvttpprriinntt.
     First,   there   are   the  provided  man  pages  (e.g.
     vvttpprriinntt..11).  Also there is a brief  synopsis  available
     by  typing "vtprint -h".  Finally, you can subscribe to
     the vvttpprriinntt mailing list (where vvttpprriinntt topics are dis-
     cussed,  and official announcements from the author are
     posted) by sending mail  to  "vtprint-request@sdsu.edu"
     with a line "subscribe" in the body of the message.

     Of course, you can still contact the author directly if
     you run into difficulties that  these  resources  can't
     help you solve.


3.2. How do I print text files using vvttpprriinntt?



     Type  "vtprint  _<_f_i_l_e_l_i_s_t_>".   There  are  also several
     options available.  See the man page for details on the
     options.   Alternatively,  you  can  use vvttpprriinntt as the
     receiving end of a pipe.


3.3. How do I print binary files using vvttpprriinntt?



     vvttpprriinntt does not  support  printing  of  binary  files.
     This  is because vvttpprriinntt uses certain escape codes, and
     binary files may contain escape codes which  will  con-
     fuse vvttpprriinntt (and possibly your terminal emulator).





                        19 June 1994





                             -5-


3.4. What about PostScript?



     Because  PostScript  is  just  ASCII  text, vvttpprriinntt can
     print PostScript to your printer. But it DOES NOT  know
     how   to   perform  conversion  from  regular  text  to
     PostScript, which means  that  if  your  printer  is  a
     PostScript only printer, you should set up some sort of
     filter to perform ASCII to PostScript conversion before
     piping  it to vvttpprriinntt. For example, the following shell
     script might be used to send PostScript  to  a  printer
     from a text file:

          #!/bin/sh
          while [ -n $1 ]; do { enscript $1 | vtprint; shift; }


     Some   time   in  the  _f_a_r  future,  vvttpprriinntt  may  have
     PostScript translation added to it if it  is  requested
     by sufficiently many people.



44..   UUssiinngg vvttpprriinntt wwiitthh ootthheerr UUNNIIXX--bbaasseedd pprrooggrraammss..





4.1. How do I use vvttpprriinntt with eellmm?



     In  eellmm,  press "O" (for _O_p_t_i_o_n_s).  Then press "P" (for
     _P_r_i_n_t _m_a_i_l  _u_s_i_n_g).   Now  enter  "vtprint  _[_o_p_t_i_o_n_s_]".
     I've found that the option string "-cdq" works well for
     me.  Finally, save your change by  pressing  ">".   Now
     you  can  press  "I"  to return to the main mail index.
     Pressing "P" on the mail index screen  will  print  the
     currently selected message using vvttpprriinntt.

     This  may  not  work with very old versions of eellmm.  It
     has worked find for me since about version 2.3 or so --
     I haven't tried it with any older versions.


4.2. How do I use vvttpprriinntt with mmaaiill?



     I  am  not sure if this works for all mailers, but with
     the SunOS mmaaiill, if you use  the  command  "|  _[_m_e_s_s_a_g_e_-
     _l_i_s_t_]  vtprint _[_o_p_t_i_o_n_s_]", the message will be piped to



                        19 June 1994





                             -6-


     vvttpprriinntt.  This strategy (using pipe) works for a  great
     many programs besides plain old mmaaiill.


4.3. How do I use vvttpprriinntt with ppiinnee?



     You do not need to use vvttpprriinntt with ppiinnee.  The code for
     vvttpprriinntt is derived from code the author originally  saw
     in  ppiinnee!   To  use ppiinnee, select the "attached-to-ansi"
     printer option, and print away!


4.4. How do I use vvttpprriinntt with ttiinn?



     You need to edit the "~/.tin/.tinrc" file.  There is  a
     line that looks like:

          default_printer=_[_s_o_m_e_t_h_i_n_g_]

     You  need  merely  change  the value of _s_o_m_e_t_h_i_n_g to be
     "vtprint" along with any options you want to use.  I've
     found  that ttiinn is much more finnicky about the options
     used by vvttpprriinntt, so I use the "-cdq" options.

     Incidentally, vvttpprriinntt may not work with versions of ttiinn
     prior  to 1.2pl2.  The problem was a bug in ttiinn, and is
     fixed in more recent versions.


4.5. How do I set up program X to use vvttpprriinntt?



     I have listed above some of the more commonly used pro-
     grams.   If your program isn't listed, and you think it
     should be, tell me!

     The general solution is to  check  out  your  program's
     documentation  to see if the printer program it uses is
     configurable.  If so, set it  to  "vtprint".   You  may
     need  to  use special options -- the options "-cd" will
     solve most problems for many people.

     If the printer program can't be changed,  then  see  if
     you can use a pipe from your program.  If so, just pipe
     the output you wish to print to vvttpprriinntt.







                        19 June 1994





                             -7-


55..   PPrroobblleemmss





5.1. It  just  doesn't  work!   Nothing  is  output  by  the
     printer,  or  the  text appears on my screen but not on
     the printer.



     This is probably a  problem  with  your  communications
     package.   In  all likelihood, your communications pro-
     gram may not support  required  printer  escape  codes.
     Most  MS-DOS  and  Windows  packages  do  support these
     codes, but the author only knows of TWO Macintosh  pro-
     grams  and  ONE  Unix  program that support vvttpprriinntt.  A
     simple thing to  do  is  try  "vtprint  <somefile>"  by
     itself.  If you get output, then your terminal emulator
     will probably work with vvttpprriinntt.

     Read the file CCOOMMPPAATT for  details  about  compatibility
     with various communications programs and terminals.

     Also,  make sure that your printer is set up correctly.
     Try printing from a local program, and make  sure  that
     the  default is printing device is set to your printer.
     (E.g. PRN: must be the same as the port your printer is
     on, under MS-DOS.


5.2. vvttpprriinntt  prints a single line, but additional lines are
     starting at the wrong horizontal  location,  or  aren't
     showing up at all! or Why can't I get anything past the
     first line or two to print correctly?



     You may not have CR/LF mapping set up correctly on your
     printer,  comm  package,  host,  or  vvttpprriinntt.   You can
     change the settings in any of these  locations  to  fix
     it.

     Check  out the "-c" and "-n" switches in the man pages.


5.3. Why aren't page breaks included between documents?



     Some terminal emulators don't  handle  formfeeds  prop-
     erly.   TTeelleemmaattee  44..1122 is known to eat them, and MMiiccrroo--
     pphhoonnee IIII requires a setting change to fix this problem.



                        19 June 1994





                             -8-


5.4. Why does vvttpprriinntt fail on big documents?



     vvttpprriinntt  may  choke  on some large documents if you are
     not using proper flow control settings.  Normally,  you
     should use "hardware" flow control, which is also some-
     times known as CTS/RTS flow control.   The  reason  for
     this  is  that  the  printer may fall behind the serial
     line, and the local  communications  program  needs  to
     able to tell the host "wait for me to catch up with you
     before you give me any more data -- I've  not  got  any
     room  for it at the moment!")  You could use "XON/XOFF"
     flow control, but this is discouraged as it may  inter-
     fere with some other software packages which use CTRL-S
     and CTRL-Q for other functions (such as binary transfer
     protocols).


5.5. Why  does  vvttpprriinntt  echo  text  (or  some  text) to the
     screen?



     Some communications programs or terminals  may  send  a
     copy  of  the printed file to the screen as well as the
     program.  This is legal in many cases, since many  ter-
     minal  standards  don't  define  whether screen echoing
     when printing should be done or not.




























                        19 June 1994





                             -i-


                        TTaabbllee ooff CCoonntteennttss



1.   AAbboouutt vvttpprriinntt


1.1.      What is vvttpprriinntt?


1.2.      Who writes/supports vvttpprriinntt?


1.3.      Where do I get vvttpprriinntt?


1.4.      What do I need to use vvttpprriinntt?



2.   IInnssttaalllliinngg vvttpprriinntt


2.1.      How do I install vvttpprriinntt??


2.2.      What if I don't have root  access  on  the  remote
          host?


2.3.      How do I set up my account to use vvttpprriinntt?



3.   UUssiinngg vvttpprriinntt


3.1.      What help is available for using vvttpprriinntt?


3.2.      How do I print text files using vvttpprriinntt?


3.3.      How do I print binary files using vvttpprriinntt?


3.4.      What about PostScript?



4.   UUssiinngg vvttpprriinntt wwiitthh ootthheerr UUNNIIXX--bbaasseedd pprrooggrraammss..






                        19 June 1994





                            -ii-


4.1.      How do I use vvttpprriinntt with eellmm?


4.2.      How do I use vvttpprriinntt with mmaaiill?


4.3.      How do I use vvttpprriinntt with ppiinnee?


4.4.      How do I use vvttpprriinntt with ttiinn?


4.5.      How do I set up program X to use vvttpprriinntt?



5.   PPrroobblleemmss


5.1.      It  just  doesn't  work!  Nothing is output by the
          printer, or the text appears on my screen but  not
          on the printer.


5.2.      vvttpprriinntt prints a single line, but additional lines
          are starting at the wrong horizontal location,  or
          aren't  showing up at all! or Why can't I get any-
          thing past the first line or  two  to  print  cor-
          rectly?


5.3.      Why aren't page breaks included between documents?


5.4.      Why does vvttpprriinntt fail on big documents?


5.5.      Why does vvttpprriinntt echo text (or some text)  to  the
          screen?


















                        19 June 1994