Hi all.

About 2 years ago I had hacked at the serial code in dosemu to allow me to
attach a dosemu COM port to a pty, and force the CD line high.

Unfortunately, at the time (dosemu 1.0.2), I had to modify dosemu to get
the CD bit to stay high.

I would like to resurrect the work I was doing, but would prefer not to
hack at dosemu anymore.

What I'd like is something like this:

# from my dosemu global.conf for 1.0.2
serial { com 1 forcecd device $PTY }

Which would then tie COM1 to my PTY and force the CD bit high.

Is there an option like this in the new code, or will I need to modify the
serial code to get CD to stay high?


The changes I had made back in 1.0.2 were:

1. change the struct in serial.h to include a boolean field "forcecd"

2. Change the lexer to understand "forceCD" and set the new field

 %token BASE IRQ INTERRUPT DEVICE CHARSET  BAUDRATE VIRTUAL FORCECD

  FORCECD { sprt->forcecd = TRUE; }

3. hijack 'if(com[num].virtual)', replacing 'if(com[num].forcecd)' in
ser_irq.c

                                        [Darrin]
--
Darrin M. Gorski <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to