"Joerg D. Schmid" <[EMAIL PROTECTED]> writes:

> Dag Brattli wrote:
> 
> > I cannot reproduce this and I can "cat > /dev/irlpt0" without any
> > problems. Does your irlpt setup look like this?
> >
> > crw-rw-rw-   1 root     161,  16 Aug 28 17:52 /dev/irlpt0
> > crw-rw-rw-   1 root     161,  17 Jun 18 13:44 /dev/irlpt1
> 
> Yes (except for the dates),  in addition I have  ircomm0 ... 161,0 ircomm1 ... 161,1.
> Maybe you don't notice the problem because  postscript isn't disturbed by additional 
>white space.

No, I was using cat directly to the port and the file was a non-postscript!

> Demonstrating the problem with a HP6P or HP5MP:
> generate "file" with the following 8 characters:   "\ra\nb\n\rc\f"
> (\r = 0x0D = carriage return, \n = 0x0A = new line, \f = 0x0C = form feed)
> 
> cat file > /dev/irlpt0 : via ir        : letters left aligned in the output 
>(incorrect)
> cat file > /dev/lp0      : via cable : b sticks out to the right in the output 
>(correct)
> 
> PS: I didn't understand the workaround with stty mentioned in a previous mail.

*** Please comment for those of you who knows about stuff like this:

Would it be a good idea (hack!) to do something like this somewhere in the
initialization of IrCOMM (ircomm_tty.c, ircomm_tty_open()?):

        tty->termios->c_iflag = 0;
        tty->termios->c_oflag = 0;

.. to force the ldisc into "raw" mode by default which is what we usually
want for IrCOMM and IrLPT? That way, we will not need to twiddle with
printcap etc.

-- Dag

-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to