SGTTY support in mgetty
Gert Doering (gert@greenie.muc.de)
Sun, 29 Oct 1995 12:27:48 +0100
Hello,
Gregor Hoffleit wrote:
> Well, more and more I come to the conclusion that POSIX support with
> NEXTSTEP is _really_ evil.
*sigh*
> Now I found a patch file were somebody already
> started to implment parts of the missing sgtty support for mgetty.
Oh? Where? Wanna have!
> As I can see, the most important difference to termios seems to be that
> the functionality is distributed over three different interfaces, and
> only one of them is used yet, sgtty.
One thing is that there are more functions to use, not just the generic
termios structure with tcsetattr()/tcgetattr(). Another thing is that some
things are simply not doable with sgtty, because it's less powerful --
but I *think* it should do everything mgetty needs.
> Any ideas how much work it really is to implement the missing stuff ? Are
> there any other places to look for besides the 'not yet implemented '
> messages ?
Most of it is in tio.c, #ifdef BSD_SGTTY.
Gettydefs support can't be used with SGTTY (because the concepts are
too different).
do_chat.c wants SYSV_TERMIO or POSIX_TERMIOS for "clean_line", but you
can work around that by defining -DBROKEN_VTIME.
That should be all -- it shouldn't be very hard, maybe a day or two of
adapting tio.c. I'd do it myself, but I don't have a system which still
fully supports sgtty for testing.
gert
PS: I'll gladly incorporate your changes into tio.c -- which will make it
"the final portable Terminal IO library" :))
--
//www.muc.de/~gert
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-3545980 <---new!!! gert.doering@physik.tu-muenchen.de