This is a very OBSOLETE piece of code, from the previous millennium!!
I'm not even sure if it works with the new Linux kernels.
It is here for emotional reasons, to remind me the old days, when I had time to write code and enjoy it.
Of course you can use it for many proposes (let say to
control the console with a serial port), but the primary thought was for
reading barcode labels.
(For the history : my plane was to have about 10 POS diskless Linux terminals -boot to Linux with a bootdisk, rlogin to server- with barcode readers on them. What a speed !!!!. That was 1997, 1998 and we used to make our own mini-linux bootable floppies :) )
You can use any serial port , and you can also have multiply readers the same time.
-T output tty default /dev/tty0
-t input tty default /dev/ttyS0
-s speed default 9600
-d data bits default 8
-p parity default N(one)
-b stop bits default 1
-c cut off cr default no
-n cut off nl default no
-l log messages default no
-D enable debug messages
-h this help screen
for example :
barcode reader at ttyS0, 9600 8N1
barcode reader (?) at ttyS1 38400 7E2
linbar -t /dev/ttyS1 -s 38400 -d 7 -p E -b 2 &
debug the driver (note that it runs in the foreground)
There used to be Contrib directory - with an X linbar version for xterm, contributed by Simon Falvey, but after many years I lost it. Maybe if you Google it you can find it in an old mirror of argeas.cs-net.gr
0.5 NOTES :
Mainly a bug fix release, no consept changes from 0.4.
Sorry but I don't have time for linbar, and since 1999 I have stoped working with projects that use bar-code readers. As the matter of fact these days (in the case I had time) I would re-wrote the hole thing in perl without linserial and g++ - anyway....