question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`WindowsDriver` is broken on `conhost`

See original GitHub issue
image

RGB works in conhost, so I’m not quite sure why this is not working: image

In v2 true color is now the default. To fix this we need to either:

  1. Figure out why emitting the ANSI ESC sequences is not working on conhost
  2. Add code to test for 24 bit color in the terminal using the method described here: https://github.com/termstandard/colors
  3. FIgure out how to reliably detect we’re not in Windows Terminal and switch to Force16Color = true.

Note that testing for the WT_SESSION is NOT reliable as I thought.

Issue Analytics

  • State:open
  • Created a month ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tigcommented, Aug 19, 2023

Mouse has never worked right on conemu. I gave up trying to figure it out.

0reactions
BDispcommented, Aug 19, 2023

Virtual Terminal Sequences, the new windows API that supports true color is really just a fancy name for ansi esc sequences.

I know that, but did you already realize that was what I implemented in the NetDriver to Windows have support for ansi esc sequences, but is very slow on Windows with the conhost, mainly with mouse events.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conhost.exe running at 30% CPU
The only strange thing is that opening windows task manager seems to fix the problem as my cpu usage drops to only 5-6%...
Read more >
Conhost.exe errors: Fix, download, prevent virus infection
How to fix conhost.exe errors: 4 options ; Go to Start and enter Resource Monitor in the search line; ; Go to Start>Windows...
Read more >
Terminal processes on Windows (conhost.exe) do not get ...
Press Help -> Open Process Explorer, and leave the window open to the side (so you can see the phantom conhost processes).
Read more >
Fix: Conhost.exe Issues in Windows 10
How to fix Conhost.exe Issues in Windows 10 such as Bad Image, missing or corrupt, Application Error, Cannot find, Faulting Path, failed to...
Read more >
How to Fix Console Window Host High CPU Usage - jdocs.com
The best solution to get rid of this problem is to perform an update of all the device drivers present within the system....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found