At last, a new snapshot. I have integrated the patches for pty and
sshd1 support, as well as some bugfixes. I haven't tested the sshd1
support.
I have managed to run emacs -nw under lsh, and it seems to work fine.
However, there are some problems with the terminal settings for
programs that are not setting the tty in raw mode. I hope that these
problems will disappear once the tty_encode_term_mode() function in
tty.c is implemented properly.
One question for those of you more familiar with tty handling: What is
the right mode for the *local* tty? The current code sets it to raw
mode (as defined by cfmakeraw()), if a remote pty is successfully
allocated.
And whick mode should be encoded into the pty-request? Currently, lsh
tries to encode the terminal mode as it appears *after* the call to
cfmakeraw. Is this right or wrong? (And the encoding is not yet
implemented; tty_encode_term_mode returns an empty string for any
terminal mode).
ftp://ftp.lysator.liu.se/pub/security/lsh/lsh-snapshot-1999-01-28.tar.gz
Happy hacking,
/Niels Möller