Next Version
Input handling changes:
- Improve Ctrl-C handling with programs that use unprocessed input. (e.g. Ctrl-C now cancels input with PowerShell on Windows 10.) #116
- Fix a theoretical issue with input event ordering. #117
- Ctrl/Shift+{Arrow,Home,End} keys now work with IntelliJ. #118
Version 0.4.3 (2017-05-17)
Input handling changes:
- winpty sets
ENHANCED_KEYfor arrow and navigation keys. This fixes an issue with the Ruby REPL. #99 - AltGr keys are handled better now. #109
- In
ENABLE_VIRTUAL_TERMINAL_INPUTmode, when typing Home/End with a modifier (e.g. Ctrl), winpty now generates an H/F escape sequence like^[[1;5Frather than a 1/4 escape like^[[4;5~. #114
Resizing and scraping fixes:
- winpty now synthesizes a
WINDOW_BUFFER_SIZE_EVENTevent after resizing the console to better propagate window size changes to console programs. In particular, this affects WSL and Cygwin. #110 - Better handling of resizing for certain full-screen programs, like WSL less. #112
- Hide the cursor if it's currently outside the console window. This change fixes an issue with Far Manager. #113
- winpty now avoids using console fonts smaller than 5px high to improve half-vs-full-width character handling. See https://github.com/Microsoft/vscode/issues/19665. b4db322010
Cygwin/MSYS adapter fix:
- The way the
winptyCygwin/MSYS2 adapter searches for the program to launch changed. It now resolves symlinks and searches the PATH explicitly. #81 #98
This release does not include binaries for the old MSYS1 project anymore. MSYS2 will continue to be supported. See https://github.com/rprichard/winpty/issues/97.
Version 0.4.2 (2017-01-18)
This release improves WSL support (i.e. Bash-on-Windows):
- winpty generates more correct input escape sequences for WSL programs that
enable an alternate input mode using DECCKM. This bug affected arrow keys
and Home/End in WSL programs such as
vim,mc, andless. #90 - winpty now recognizes the
COMMON_LVB_REVERSE_VIDEOandCOMMON_LVB_UNDERSCOREtext attributes. The Windows console uses these attributes to implement the SGR.4(Underline) and SGR.7(Negative) modes in its VT handling. This change affects WSL pager status bars, man pages, etc.
The build system no longer has a "version suffix" mechanism, so passing
VERSION_SUFFIX=<suffix> to make or -D VERSION_SUFFIX=<suffix> to gyp now
has no effect. AFAIK, the mechanism was never used publicly.
67a34b6c03
Version 0.4.1 (2017-01-03)
Bug fixes:
- This version fixes a bug where the
winpty-agent.exeprocess could read past the end of a buffer. #94
Version 0.4.0 (2016-06-28)
The winpty library has a new API that should be easier for embedding. 880c00c69e
User-visible changes:
- winpty now automatically puts the terminal into mouse mode when it detects
that the console has left QuickEdit mode. The
--mouseoption still forces the terminal into mouse mode. In principle, an option could be added to suppress terminal mode, but hopefully it won't be necessary. There is a script in themiscsubdirectory,misc/ConinMode.ps1, that can change the QuickEdit mode from the command-line. - winpty now passes keyboard escapes to
bash.exein the Windows Subsystem for Linux. #82
Bug fixes:
- By default,
winpty.dllavoids callingSetProcessWindowStationwithin the calling process. #58 - Fixed an uninitialized memory bug that could have crashed winpty. #80
- winpty now works better with very large and very small terminal windows. It resizes the console font according to the number of columns. #61
- winpty no longer uses Mark to freeze the console on Windows 10. The Mark command could interfere with the cursor position, corrupting the data in the screen buffer. #79
Version 0.3.0 (2016-05-20)
User-visible changes:
- The UNIX adapter is renamed from
console.exetowinpty.exeto be consistent with MSYS2. The namewinpty.exeis less likely to conflict with another program and is easier to search for online (e.g. for someone unfamiliar with winpty). - The UNIX adapter now clears the
TERMvariable. #43 - An escape character appearing in a console screen buffer cell is converted to a '?'. #47
Bug fixes:
- A major bug affecting XP users was fixed. #67
- Fixed an incompatibility with ConEmu where winpty hung if ConEmu's "Process 'start'" feature was enabled. #70
- Fixed a bug where
cmd.exesometimes printed the message,Not enough storage is available to process this command.. #74
Many changes internally:
- The codebase is switched from C++03 to C++11 and uses exceptions internally.
No exceptions are thrown across the C APIs defined in
winpty.h. - This version drops support for the original MinGW compiler packaged with
Cygwin (
i686-pc-mingw32-g++). The MinGW-w64 compiler is still supported, as is the MinGW distributed at mingw.org. Compiling with MSVC now requires MSVC 2013 or newer. Windows XP is still supported. ec3eae8df5 - Pipe security is improved. winpty works harder to produce unique pipe names
and includes a random component in the name. winpty secures pipes with a
DACL that prevents arbitrary users from connecting to its pipes. winpty now
passes
PIPE_REJECT_REMOTE_CLIENTSon Vista and up, and it verifies that the pipe client PID is correct, again on Vista and up. When connecting to a named pipe, winpty uses theSECURITY_IDENTIFICATIONflag to restrict impersonation. Previous versions should still be secure. winpty-debugserver.exenow has an--everyoneflag that allows capturing debug output from other users.- The code now compiles cleanly with MSVC's "Security Development Lifecycle"
(
/SDL) checks enabled.
Version 0.2.2 (2016-02-25)
Minor bug fixes and enhancements:
- Fix a bug that generated spurious mouse input records when an incomplete mouse escape sequence was seen.
- Fix a buffer overflow bug in
winpty-debugserver.exeaffecting messages of exactly 4096 bytes. - For MSVC builds, add a
src/configurations.gypifile that can be included on the gyp command-line to enable 32-bit and 64-bit builds. winpty-agent --show-inputmode: Flush stdout after each line.- Makefile builds: generate a
build/winpty.libimport library to accompanybuild/winpty.dll.
Version 0.2.1 (2015-12-19)
- The main project source was moved into a
srcdirectory for better code organization and to fix #51. - winpty recognizes many more escape sequences, including:
- putty/rxvt's F1-F4 keys #40
- the Linux virtual console's F1-F5 keys
- the "application numpad" keys (e.g. enabled with DECPAM)
- Fixed handling of Shift-Alt-O and Alt-[.
- Added support for mouse input. The UNIX adapter has a
--mouseargument that puts the terminal into mouse mode, but the agent recognizes mouse input even without the argument. The agent recognizes double-clicks using Windows' double-click interval setting (i.e. GetDoubleClickTime). #57
Changes to debugging interfaces:
- The
WINPTY_DEBUGvariable is now a comma-separated list. The old behavior (i.e. tracing) is enabled withWINPTY_DEBUG=trace. - The UNIX adapter program now has a
--showkeyargument that dumps input bytes. - The
winpty-agent.exeprogram has a--show-inputargument that dumpsINPUT_RECORDrecords. (It omits mouse events unless--with-mouseis also specified.) The agent also responds toWINPTY_DEBUG=trace,input, which logs input bytes and synthesized console events, and it responds toWINPTY_DEBUG=trace,dump_input_map, which dumps the internal table of escape sequences.
Version 0.2.0 (2015-11-13)
No changes to the API, but many small changes to the implementation. The big changes include:
- Support for 64-bit Cygwin and MSYS2
- Support for Windows 10
- Better Unicode support (especially East Asian languages)
Details:
- The
configurescript recognizes 64-bit Cygwin and MSYS2 environments and selects the appropriate compiler. - winpty works much better with the upgraded console in Windows 10. The
conhost.exehang can still occur, but only with certain programs, and is much less likely to occur. With the new console, use Mark instead of SelectAll, for better performance. #31 #30 #53 - The UNIX adapter now calls
setlocale(LC_ALL, "")to set the locale. - Improved Unicode support. When a console is started with an East Asian code page, winpty now chooses an East Asian font rather than Consolas / Lucida Console. Selecting the right font helps synchronize character widths between the console and terminal. (It's not perfect, though.) #41
- winpty now more-or-less works with programs that change the screen buffer
or resize the original screen buffer. If the screen buffer height changes,
winpty switches to a "direct mode", where it makes no effort to track
scrolling. In direct mode, it merely syncs snapshots of the console to the
terminal. Caveats:
- Changing the screen buffer (i.e.
SetConsoleActiveScreenBuffer) breaks winpty on Windows 7. This problem can eventually be mitigated, but never completely fixed, due to Windows 7 bugginess. - Resizing the original screen buffer can hang
conhost.exeon Windows 10. Enabling the legacy console is a workaround. - If a program changes the screen buffer and then exits, relying on the OS to restore the original screen buffer, that restoration probably will not happen with winpty. winpty's behavior can probably be improved here.
- Changing the screen buffer (i.e.
- Improved color handling:
- DkGray-on-Black text was previously hiddenly completely. Now it is output as DkGray, with a fallback to LtGray on terminals that don't recognize the intense colors. #39.
- The console is always initialized to LtGray-on-Black, regardless of the user setting, which matches the console color heuristic, which translates LtGray-on-Black to "reset SGR parameters."
- Shift-Tab is recognized correctly now. #19
- Add a
--versionargument towinpty-agent.exeand the UNIX adapter. The argument reports the nominal version (i.e. theVERSION.txt) file, with a "VERSION_SUFFIX" appended (defaulted to-dev), and a git commit hash, if thegitcommand successfully reports a hash during the build. Thegitcommand is invoked by eithermakeorgyp. - The agent now combines
ReadConsoleOutputWcalls when it polls the console buffer for changes, which may slightly reduce its CPU overhead. #44. - A
gypfile is added to help compile with MSVC. - The code can now be compiled as C++11 code, though it isn't by default. bde8922e08
- If winpty can't create a new window station, it charges ahead rather than aborting. This situation might happen if winpty were started from an SSH session.
- Debugging improvements:
WINPTYDBGis renamed toWINPTY_DEBUG, and a newWINPTY_SHOW_CONSOLEvariable keeps the underlying console visible.- A
winpty-debugserver.exeprogram is built and shipped by default. It collects the trace output enabled withWINPTY_DEBUG.
- The
Makefilebuild of winpty now compileswinpty-agent.exeandwinpty.dllwith -O2.
Version 0.1.1 (2012-07-28)
Minor bugfix release.
Version 0.1 (2012-04-17)
Initial release.