diff --git a/assets/windows/conhost/OpenConsole.exe b/assets/windows/conhost/OpenConsole.exe index b30ab68a0d1..d51afde2f20 100644 Binary files a/assets/windows/conhost/OpenConsole.exe and b/assets/windows/conhost/OpenConsole.exe differ diff --git a/assets/windows/conhost/conpty.dll b/assets/windows/conhost/conpty.dll index 8587271f347..5af979a6a83 100644 Binary files a/assets/windows/conhost/conpty.dll and b/assets/windows/conhost/conpty.dll differ diff --git a/docs/changelog.md b/docs/changelog.md index c4cf4db8e8b..0d6841e1581 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -25,6 +25,7 @@ As features stabilize some brief notes about them will accumulate here. * Fixed: OSC 7 (current working directory) now works with paths that contain spaces and other special characters. Thanks to [@Arvedui](https://github.com/Arvedui)! [#799](https://github.com/wez/wezterm/pull/799) * Changed: the homebrew tap is now a Cask that installs to the /Applications directory on macOS. Thanks to [@laggardkernel](https://github.com/laggardkernel)! * New: bold and/or italics are now synthesized for fonts when the matching font is not actually italic or doesn't match the requested weight. [#815](https://github.com/wez/wezterm/issues/815) +* Updated: conpty.dll to v1.9.1445.0; fixes color bar artifacts when resizing window and allows win32 console applications to use mouse events ### 20210502-154244-3f7122cb diff --git a/pty/src/win/psuedocon.rs b/pty/src/win/psuedocon.rs index 4d4c84bb456..2929c694337 100644 --- a/pty/src/win/psuedocon.rs +++ b/pty/src/win/psuedocon.rs @@ -25,6 +25,9 @@ use winapi::um::wincon::COORD; pub type HPCON = HANDLE; +pub const PSEUDOCONSOLE_RESIZE_QUIRK: DWORD = 0x2; +pub const PSEUDOCONSOLE_WIN32_INPUT_MODE: DWORD = 0x4; + shared_library!(ConPtyFuncs, pub fn CreatePseudoConsole( size: COORD, @@ -79,7 +82,7 @@ impl PsuedoCon { size, input.as_raw_handle(), output.as_raw_handle(), - 0, + PSEUDOCONSOLE_RESIZE_QUIRK | PSEUDOCONSOLE_WIN32_INPUT_MODE, &mut con, ) };