Skip to content

Use an updated version of ConPTY#540

Merged
davidrg merged 5 commits into
masterfrom
bundle-conpty
Jul 8, 2026
Merged

Use an updated version of ConPTY#540
davidrg merged 5 commits into
masterfrom
bundle-conpty

Conversation

@davidrg

@davidrg davidrg commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Try to load conpty.dll from the executable directory first, then from the path. If conpty.dll can't be found then fall back to the older ConPTY implementation in kernel32.dll.

This seems to be enough to get, eg, vtnibbler working properly in 64bit builds of K95, but the 32bit builds don't seem to work with 32bit builds of conpty for some reason.

TODO:

  • Fetch updated conpty and openconsole from nuget
  • Figure out why 32bit conpty and openconsole don't work on 64bit windows
    • Confirm 32bit K95 with 32bit conpty.dll and openconsole.exe work fine on 32bit Windows 10
    • Fix bug in K95 if it is one, or disable loading of conpty.dll in 32bit builds running on 64bit windows if its a known compatibility problem.
  • Make sure that loading a bundled conpty.dll on older windows (eg windows 7) doesn't result in the PTY command becoming available but not working.

Try to load conpty.dll from the executable directory first, then from the path, before trying to use the version thats built-in to kernel32.dll.

This allows K95 to run programs like vtnibbler properly in a PTY.
davidrg added 3 commits July 7, 2026 15:59
Versions of K95 that can run on more than one CPU architecture need to ship with variants of OpenConsole.exe for each CPU architecture they can run on. These need to go into \$ARCH\OpenConsole.exe, and conpty.dll will pick up the right variant from there.
@davidrg davidrg marked this pull request as ready for review July 8, 2026 03:59
@davidrg davidrg merged commit a0f962f into master Jul 8, 2026
32 checks passed
@davidrg davidrg deleted the bundle-conpty branch July 8, 2026 04:06
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.

1 participant