Skip to content

Commit 9ea8f19

Browse files
committed
Disconnect the existing term on restart first
1 parent 3fc330d commit 9ea8f19

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

EasyWindowsTerminalControl.WinUI/EasyWindowsTerminalControl.WinUI.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
77
<UseWinUI>true</UseWinUI>
88
<Platforms>AnyCPU;x64</Platforms>
9-
<Version>1.0.16-beta.1</Version>
9+
<Version>1.0.17-beta.1</Version>
1010
<Description>High performance WinUI3 native terminal/shell control. For WPF version see EasyWindowsTerminalControl alt package. It features full 24-bit color support with ANSI/VT escape sequences (and colors), hardware / GPU accelerated rendering, mouse support, and true console interaction. Support for command shells and key sequences, user interaction and programatic control. See GH for more details.</Description>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
1212
<Authors>MitchCapper</Authors>
@@ -39,11 +39,13 @@
3939
</ItemGroup>
4040
<ItemGroup>
4141
<PackageReference Include="CI.Microsoft.Windows.Console.ConPTY" Version="1.22.250314001" />
42-
<PackageReference Include="CI.Microsoft.Terminal.WinUI3.Unofficial" Version="1.0.16-beta.1" />
42+
<PackageReference Include="CI.Microsoft.Terminal.WinUI3.Unofficial" Version="1.0.17-beta.1" />
4343
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106">
4444
<PrivateAssets>all</PrivateAssets>
4545
</PackageReference>
4646
</ItemGroup>
4747
</Project>
4848

4949

50+
51+

EasyWindowsTerminalControl/EasyTerminalControl.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ private void Term_TermReady(object sender, EventArgs e) {
195195
/// <param name="disposeOld">True if the old term should be killed off</param>
196196
public async Task RestartTerm(TermPTY useTerm = null, bool disposeOld=true){
197197
var oldTerm = ConPTYTerm;
198+
DisconnectConPTYTerm();
198199
ConPTYTerm = useTerm ?? new TermPTY();
199200
if (disposeOld){
200201
try{

EasyWindowsTerminalControl/EasyWindowsTerminalControl.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PlatformTarget>x64</PlatformTarget>
66
<Platforms>x64</Platforms>
77
<UseWpf>true</UseWpf>
8-
<Version>1.0.34</Version>
8+
<Version>1.0.35</Version>
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<PackageOutputPath>../Publish</PackageOutputPath>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -33,3 +33,4 @@
3333

3434
</Project>
3535

36+

Microsoft.Terminal.WinUI3/Microsoft.Terminal.WinUI3.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<BeforePack>CollectNativePackContents</BeforePack>
1111
<Authors>MitchCapper</Authors>
1212
<PackageProjectUrl>https://github.com/MitchCapper/EasyWindowsTerminalControl</PackageProjectUrl>
13-
<Version>1.0.16-beta.1</Version>
13+
<Version>1.0.17-beta.1</Version>
1414
<Description>This is an unofficial WinUI3 recreation of the official Microsoft.Terminal.WPF package. Highly recommend using this with the "EasyWindowsTerminalControl.WinUI".</Description>
1515
<PackageOutputPath>../Publish</PackageOutputPath>
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -97,3 +97,4 @@
9797
</Target>
9898
</Project>
9999

100+

TermExample.WinUI/TermExample.WinUI.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<ItemGroup>
3838
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
3939
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250310001" />
40-
<PackageReference Include="EasyWindowsTerminalControl.WinUI" Version="1.0.16-beta.1" />
40+
<PackageReference Include="EasyWindowsTerminalControl.WinUI" Version="1.0.17-beta.1" />
4141

4242
</ItemGroup>
4343
<ItemGroup>
@@ -73,3 +73,4 @@
7373
</ItemGroup>
7474
</Project>
7575

76+

0 commit comments

Comments
 (0)