Date: Thu, 2 Mar 2000 00:52:46 +1100
>> Or maybe you can just specify /dev/tty (or whatever is name of
>> current terminal on Linux) to pass it to DosEmu.
> what about the 'real' keyboard/screen? the program still needs to be able to
> read/write the local screen buffer, and poll for keyboard input. however
> none of this should be visible to the user.
I am afraid I might incorrectly understand what is to be the
_direction_ of the redirection: do you need DosEmu to see some
streams as its COM port, or you need some COM port to be used
as DosEmu input/output? The first is probably easy, the other
I tried and had serious troubles. Finally I use expect and
telnet to invoke DosEmu. Maybe things can be simplified, maybe
DosEmu must be invoked by a program which passes terminal type
in environment, and when I used pty/tty it was not set to any
reasonable default? DosEmu must assume some terminal type (say
VT100) for screen I/O to work - otherwise it terminates. And
seems it does not accept redirection from/to a file. I assume
it is especially important for output - for screen addressing.
If you want use DosEmu in a way one can phone your machine,
and invoke DosEmu, there is a must to determine terminal type
for the DosEmu to be able to display correctly on terminal.
Also, seems you can use some getty version for all the job...
just display info like "for login enter terminal type, one of
vt100, vt220, ....", and for every of these names define user
which invokes DosEmu for respective terminal type.
Jerzy