Skip to content

Commit

Permalink
update conpty to v1.9.1445.0
Browse files Browse the repository at this point in the history
refs: microsoft/terminal#376

This also enables as the conpty layer the new win32 mode discussed in
#318
wezterm itself is not able to use this mode yet.
  • Loading branch information
wez committed May 28, 2021
1 parent 030e517 commit b5bfec6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Binary file modified assets/windows/conhost/OpenConsole.exe
Binary file not shown.
Binary file modified assets/windows/conhost/conpty.dll
Binary file not shown.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion pty/src/win/psuedocon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
)
};
Expand Down

0 comments on commit b5bfec6

Please sign in to comment.