-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Interesting Usage] Replace the Windows default conhost.exe to OpenConsole.exe #1817
Comments
You found our secret! We offer no warranty for using openconsole like this! |
Works for me including win 2019 server |
It might work all the way down to Windows 8.1. Again, no warranty! |
The open issue of this is #492 |
@brian6932 That can't possibly be the right commit, or at the very least, that's happenstance. The only two code changes in v1.17.11391.0...v1.17.11461.0 are firmly in Terminal-only code. None of that's compiled into OpenConsole.exe at all... |
Ok, it seems like it wasn't even a tag issue, I'm not sure what causes that, but somehow the older OpenConsole releases didn't exhibit it, now the newest pre-release and release are working fine again 😓 |
Glad it went away? 😅 |
Since Windows Terminal is currently performing poorly in copying and pasting, I think OpenConsole is my better choice.
However, if you do not run it from OpenConsole, Windows will append the default console host (
C:\Windows\System32\conhost.exe
) to all console applications.Then Microsoft said that the source code of OpenConsole comes from conhost.exe, then can we replace conhost.exe directly with OpenConsole.exe? This way we get a better default console host.
I tried it and it works well. Although OpenConsole is packaged as a UWP application, OpenConsole.exe is actually a normal Win32 window program that can be run by double-clicking its exe. You can find it from
terminal\bin\x64\Release\OpenConsole.exe
if you done a x64 release build.Then, go to
C:\Windows\System32
, right-clickconhost.exe
, "Properties", and edit the permission list to give the current user the "Full Control" permission.Then, rename
conhost.exe
toconhost-old.exe
and copyOpenConsole.exe
to here and rename it toconhost.exe
.Open any console application (powershell, wsl, ...) and enjoy your new console.
The text was updated successfully, but these errors were encountered: