Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gdamore
Copy link
Owner

@gdamore gdamore commented Nov 21, 2025

No description provided.

This converts us to use the new style Windows VT console (which is
found on Windows 10 (Creators Update and later, so anything after 2017)
and Windows 11.  Note that Windows 10 itself is EOL, with only ESU updates
possible. Presumably anyone with such systems will be running a newer edition.

This may have a deleterious impact on ConEmu, as the last time we tested it
it did not work well at all in VT emulation mode (this also greatly impaired
its usability using WSL).  Its somewhat likely that this is fixed in newer
editions, but we have not checked.
This is a major redesign of the terminal subsystem for Windows to
utilize win32-input-mode and the common tscreen layer, so that we
can ultimatey (in followup) discard the console_win.go code entirely.
This also means that Windows can start benefitting from improvements
made to the common API.

One thing we should do is reduce the number of system calls used for
reading escape sequences (that will be in follow up).

This has been tested with Windows Terminal, Alacritty, WezTerm and
ConEmu.  We've encountered bugs in all of the 3rd party emulators,
and we cannot honestly recommend their use on Windows -- the Windows 11
Terminal application is however quite good and works very well with
this functionality. Alacritty performs acceptably, with workarounds,
WezTerm marginally so, and with ConEmu you should already be used to
to substantial limitations.

Follow up will be to improve performance and ultimately remove the
legacy console_win.go and support for NewConsoleScreen entirely.
@gdamore gdamore merged commit eae6882 into main Nov 22, 2025
12 checks passed
@gdamore gdamore deleted the win32-input branch November 22, 2025 06:57
arimxyer added a commit to arimxyer/pass-cli that referenced this pull request Dec 10, 2025
tcell v2.12.0 introduced a Win32 input mode redesign that breaks
Shift+Tab handling in PowerShell (works in WSL). Also caused status
bar rendering issues.

Pinning to v2.11.0 until upstream fixes the regression.
See: gdamore/tcell#843

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants