From 5c051f00dfcb7f30ceab31f94bdd237f6086760c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 8 Apr 2021 12:43:20 +0100 Subject: [PATCH] winplink: create an Ldisc for the backend to use. This has apparently been missing more or less forever (though Unix Plink does have it). Without this, ssh.c can't call ldisc_update, which can't pass the current editing and echoing settings through to seat_echoedit_update. Windows Plink has always _had_ an implementation of that seat method (and the static function that preceded it), but it was never able to be called, because of that missing link. The result was that manual overrides in the Conf to force local editing/echoing to a particular state were not honoured by Windows Plink, and neither were mainchan.c's attempts to set the state automatically based on whether a pty had been allocated at the far end of the connection. --- windows/winplink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/winplink.c b/windows/winplink.c index 22ea4eba..da6c3de2 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -513,6 +513,7 @@ int main(int argc, char **argv) sfree(error); return 1; } + ldisc_create(conf, NULL, backend, plink_seat); sfree(realhost); }