> Between exams, I'll have some time to work on lsh. (or at least
> I'll make some time available :-)) I thought it would be handy, if
> lshd could allocate a pseudo-tty, so real full-screen programs
> could be run.
>
> My question is about how I should allocate that given pseudo
> tty. [...]
As you have already discovered, this is one of the areas of Unix and
Unix-like operating systems which is very poorly standardized, and
as a result, there are about a gazillion different ways to do this,
and some of them even have their own sub-variants (e.g. some BSD-
based systems have revoke(2) and some don't, and some hide these
details through openpty(3)). (Example only taken from BSD because
that's what I'm most familiar with...)
I guess that the answer is that there is no single way to do this,
and thus you'll have to add this functionality "one platform at the
time". Some care should thus be given to this fact when the
implementation interfaces are designed.
Regards,
- H�vard