* dosemu serial support
@ 2005-02-04 18:01 Darrin M. Gorski
0 siblings, 0 replies; 2+ messages in thread
From: Darrin M. Gorski @ 2005-02-04 18:01 UTC (permalink / raw)
To: linux-msdos
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 <Darrin@Gorski.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dosemu serial support
@ 2005-02-05 9:44 Stas Sergeev
0 siblings, 0 replies; 2+ messages in thread
From: Stas Sergeev @ 2005-02-05 9:44 UTC (permalink / raw)
To: linux-msdos
Hello.
Darrin M. Gorski wrote:
> 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?
That code is all in place. Now you don't
have to do something more than just
to set $_com1 to your PTY in dosemu.conf,
and you'll get CTS, DSR and CD high.
> The changes I had made back in 1.0.2 were:
Yes, getting 1.0.2 to work was a lot of
troubles.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-05 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-05 9:44 dosemu serial support Stas Sergeev
-- strict thread matches above, loose matches on Subject: below --
2005-02-04 18:01 Darrin M. Gorski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox