From 897ecf46784571640f0f62bd8bd9a8673805dfea Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 11 Dec 2024 18:20:58 +0000 Subject: [PATCH] SUPDUP: make the TDCRL command clear to end of line. A user reported shortly after 0.82 was released that they were experiencing display corruption when connecting to a PDP-10 running ITS using PuTTY's SUPDUP backend, and that the nature of the corruption was consistent with a missing clear-to-EOL operation. Without the SUPDUP or ITS expertise to debug it ourselves, we are indebted to Scott Michel for identifying where, and providing a patch. (However, now that the patch is presented, it's obvious even to me that a line should be cleared here! The comment in PuTTY's own code mentions clearing the line that the cursor has moved on to, and the same text appears in RFC 734.) --- otherbackends/supdup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otherbackends/supdup.c b/otherbackends/supdup.c index 6f574c9f..f9680f30 100644 --- a/otherbackends/supdup.c +++ b/otherbackends/supdup.c @@ -339,7 +339,7 @@ static void do_argsdone(Supdup *supdup, strbuf *outbuf, int c) that line. If the cursor is at the bottom line, scroll up. */ - put_fmt(outbuf, "\015\012"); + put_fmt(outbuf, "\015\012\033[K"); break; case TDNOP: