GitXplorerGitXplorer
m

ConPtyTermEmulator

public
6 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
70362220964cddc036fa575d6acdf59a0c89a129

Updated example with mirror sample

mmitchcapper committed 2 years ago
Unverified
8507c63c1ba2aee4b97ec279d6e94975305d3dab

win32-input-mode, Support changing the ConPTY Term out after creation

mmitchcapper committed 2 years ago
Unverified
1ff22405bdd438fcc09dd250e8cacfb50658b3ae

Input Capture Helper Property

mmitchcapper committed 2 years ago
Unverified
ae67dcea4892651d312f0e29cc697f1cc4b18e19

ConPTY Resuse/re-parenting support, win32-input-mode and higher performance output handling

mmitchcapper committed 2 years ago
Unverified
20371ab677d9e09d32c38e6fb535a9c0430b1e95

More Safe wrappers for native calls and further migration to cswin32 only. Added externally safe process wrapper class.

mmitchcapper committed 2 years ago
Unverified
aa4184ec9f31f7fd83bc7151f7441e0bd6673c69

Minor improvements to make packaging easier fix color conversion

mmitchcapper committed 2 years ago

README

The README file for this repository.

WPF Terminal Console Control Lib/Sample

Simple example library/control/test app for the Windows Terminal WPF Control and the new ConPTY Library.

Usage

Using the control is as simple as adding the control to your xaml ie:

<term:BasicTerminalControl StartupCommandLine="pwsh.exe" />

there are other options you can customize but that will get you a fully working terminal with mouse/keyboard support including ANSI formatting.

Building This Library/Demo

Make sure your output looks like:

./ConPtyTermEmulatorLib.dll
./ConPtyTermEmulatorLib.pdb
./Microsoft.Terminal.Wpf.dll
./Microsoft.Terminal.Wpf.pdb
./Microsoft.Terminal.Wpf.xml
./runtimes/win-x64/native/conpty.dll
./runtimes/win-x64/native/PublicTerminalCore.dll
./runtimes/win-x64/native/OpenConsole.exe
./TermExample.deps.json
./TermExample.dll
./TermExample.exe
./TermExample.runtimeconfig.json

Microsoft now has a CI nuget package for Microsoft.Terminal.Wpf so the EmulatorLib will pull that in by default. For ConPTY (including OpenConsole.exe) there is no package built automatically yet. To avoid having to build it locally yourself you can download one of the latest drop artifacts from the azure CI runs. Go to: https://dev.azure.com/ms/terminal/_build?definitionId=136 click on one of the successful runs under the stages for the "Build x64" it should say X jobs completed and under that show a link to the artifacts ("ie 3 artifacts"). Download the "drop" artifact and copy the files from drop\Release\x64\test\ of: ConPty.dll and OpenConsole.dll to ConPtyTermEmulatorLib/runtimes/win-x64/native.

Adding the dlls direct to the ConPtyTermEmulatorLib means it will produce a complete nuget package with no manual work for any projects you include it in. Any project you use it in should end up with the right files in the places above.

Notes/Issues/Troubleshooting