From cee50fffb8cacfcdc55ea8932d2fadaaff22ceeb Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 3 May 2022 17:34:33 -0700 Subject: [PATCH] flush after replying to DECRQM refs: https://github.com/wez/wezterm/issues/1950 --- docs/changelog.md | 2 +- term/src/terminalstate/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index dd7ae4e1799..059be861cde 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -34,7 +34,7 @@ As features stabilize some brief notes about them will accumulate here. * Windows: wezterm will now read the default environment variables from the `HKLM\System\CurrentControlSet\Control\Session Manager\Environment` and `HKCU\Environment` and apply those to the base environment prior to applying `set_environment_variables`. [#1848](https://github.com/wez/wezterm/issues/1848) #### Fixed -* Flush after replying to XTGETTCAP. [#1850](https://github.com/wez/wezterm/issues/1850) +* Flush after replying to XTGETTCAP and DECRQM. [#1850](https://github.com/wez/wezterm/issues/1850) [#1950](https://github.com/wez/wezterm/issues/1950) * macOS: CMD-. was treated as CTRL-ESC [#1867](https://github.com/wez/wezterm/issues/1867) * macOS: CTRL-Backslash on German layouts was incorrect [#1891](https://github.com/wez/wezterm/issues/1891) * `nf-mdi-contacts` nerdfont symbol treated as zero-width [#1864](https://github.com/wez/wezterm/issues/1864) diff --git a/term/src/terminalstate/mod.rs b/term/src/terminalstate/mod.rs index e58d49014d7..1eca92a978a 100644 --- a/term/src/terminalstate/mod.rs +++ b/term/src/terminalstate/mod.rs @@ -1321,6 +1321,7 @@ impl TerminalState { log::trace!("{:?} -> recognized={} status={}", mode, recognized, status); write!(self.writer, "\x1b[{}{};{}$y", prefix, number, status).ok(); + self.writer.flush().ok(); } fn perform_csi_mode(&mut self, mode: Mode) {