simon-git: putty (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Jan 30 12:43:49 GMT 2026
TL;DR:
5b6e89cb Don't accidentally interpret DCS escapes as OSC.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2026-01-30 12:43:49
commit 5b6e89cb66d9c8f74bcc741b304cc5206699d4f6
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=5b6e89cb66d9c8f74bcc741b304cc5206699d4f6;hp=4448d1a81e934b8f697d8e7bcc66219e38924259
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Jan 30 12:30:51 2026 +0000
Don't accidentally interpret DCS escapes as OSC.
Every piece of code that sets term->termstate to SEEN_OSC also sets
term->osc_type to identify which kind of generally OSC-shaped escape
sequence is being processed, such as DCS or APC or OSC proper. But the
latter setting was having no effect, because immediately on arriving
in the SEEN_OSC case handler, we would unconditionally reset
term->osc_type back to OSCLIKE_OSC, treating them all as OSC anyway!
Reported by a user, who was finding that vim was sending the DSC
sequence ESC P z z ESC \ on startup, and this was resetting the window
title to "z". PuTTY's _intended_ handling of DSC sequences is to
consume them without messing up the display, and otherwise ignore
them. It had failed to ignore this one!
Added a small test of window-title setting to test_terminal.c, mostly
so that it can contain a regression test for that bug.
terminal/terminal.c | 1 -
test/test_terminal.c | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list