wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Colored undercurl and underline on WSL2 / updated ConPTY

Open lostl1ght opened this issue 2 years ago • 6 comments
trafficstars

Hello!

Is your feature request related to a problem? Please describe. No colored underline support on WSL2.

Describe the solution you'd like From my understanding this PR finally added colored underline support to ConPTY. Can you, please, update bundled ConPTY ~or guide me through updating it myself~?

Describe alternatives you've considered Ssh'ing to WSL2 which is a different can of worms. :(

Additional context Also, by the looks of it, the PR did not make into a release, so downloading OpenConsole.exe from release files does not work. Additionally, maybe this PR can clarify some details.

lostl1ght avatar Oct 05 '23 11:10 lostl1ght

I think I've figured it out.

I've followed build instructions here. I've built Release x64 CascadiaPackage using Visual Studio 2022, put conpty.dll and OpenConsole.exe from bin/x64/Release into Wezterm's folder and it just worked™.

Building the entire solution may fail but only conpty.dll and OpenConsole.exe are needed.

The result: image

lostl1ght avatar Oct 05 '23 13:10 lostl1ght

Would this also work for curly underline support in native windows?

chtenb avatar Oct 24 '23 08:10 chtenb

Looks like it would not.

Powershell run from wezterm: image

WSL: image

lostl1ght avatar Oct 24 '23 17:10 lostl1ght

@lostl1ght thanks for sharing! Is anything stopping you from updating the pre-built files at https://github.com/wez/wezterm/tree/6a58a5ce94f186884ec70a60b5afbd728521b1c5/assets/windows/conhost?

antoineco avatar Nov 24 '23 11:11 antoineco

i tried use newest openconsole.exe and conpty.dll, But it doesn't seem to work

Parsifa1 avatar Dec 09 '23 20:12 Parsifa1

@lostl1ght could you share which commit did you use to build it? Im having trouble replicating your results.

Pytness avatar Apr 10 '24 09:04 Pytness

For people who still follow this thread, the bundled copies of conpty.dll and OpenConsole.exe were both updated in https://github.com/wez/wezterm/commit/e7fe7c07da2da071d75c88ff3ae7a3c0e74d4f1f to the version that ships with Windows Terminal 1.19.240130002.

Undercurl seems to now be working without issues in WezTerm nightly, as showcased in the following discussion:

https://github.com/wez/wezterm/discussions/4989#discussioncomment-9445143

antoineco avatar May 15 '24 12:05 antoineco