Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Initial Version and Version 1 of UsersGuide/Printing

2018-12-11T13:22:59Z (2 years ago)
Jiri Svoboda

Printing chapter


  • UsersGuide/Printing

    v1 v1  
     1= Printing in HelenOS =
     3Rudimentary printing support was introduced in HelenOS 0.8.0. There is now a standard PC parallel port driver (pc-lpt) and the system will detect standard printer ports at addresses 0x378 and 0x278.
     5== Hadware setup ==
     7You need a PC with standard PC parallel port at 0x378 or 0x278. USB-parallel dongle will not work.
     9Qemu can be configured with parallel port emulation
     10 * To redirect emulated parallel port output to a file on the host you can use {{{-device isa-parallel,chardev=foo -chardev file,id=foo,path=/tmp/myfile.txt}}}
     11 * To redirect emulated parallel port to a real parallel port on the host you can use {{{-device isa-parallel,chardev=foo -chardev parallel,id=foo,path=/dev/lpN}}}.
     13== Software configuration and usage ==
     15To check whether your system has any printer ports:
     18/ # loc show-cat printer-port
     20        devices/\hw\sys\00:01.0\lpt1\a : devman
     21/ #
     24The {{{lprint}}} utility allows printing files or short messages. The {{{-d}}} option can be
     25used to pass the device which should be used for printing. The option can be omitted in which
     26case it will print to the default printer (currently the default printer selection is arbitrary and
     27cannot be configured).
     29To print a short message:
     32/ # lprint -m Hello world!
     35To print a file:
     37/ # lprint demo.txt
     40(Most printers probably don't accept UTF-8, though).
     42{{{#!box type=note
     43There is no actual configuration or driver for the printer. You need to send data that the printer can understand. Most printers will accept ASCII or ISO-8859-1 plain text. Some printers may accept !PostScript.