WXUJS.Terminal 1.0.0

Requires NuGet 3.3.0 or higher.

dotnet add package WXUJS.Terminal --version 1.0.0
                    
NuGet\Install-Package WXUJS.Terminal -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WXUJS.Terminal" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WXUJS.Terminal" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WXUJS.Terminal" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WXUJS.Terminal --version 1.0.0
                    
#r "nuget: WXUJS.Terminal, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WXUJS.Terminal@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WXUJS.Terminal&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WXUJS.Terminal&version=1.0.0
                    
Install as a Cake Tool

#How to use

1/ In MainWidow.xaml

Add namespace

<Window
    ...
    xmlns:t="clr-namespace:Microsoft.Terminal.Wpf;assembly=Microsoft.Terminal.Wpf"
    ...
>
<Grid>

<t:TerminalControl 
    x:Name="terminal" 
    ScrollbackLines="100" 
    Focusable="true" 
    AutoResize="True" />

</Grid>
</Window>

2/ In MainWindow.xaml.cs

using System;
using System.Windows;
using Microsoft.Terminal.Wpf;
namespace WpfTerminalTestNetCore
{
    public class EchoConnection : Microsoft.Terminal.Wpf.ITerminalConnection
    {
        public event EventHandler<TerminalOutputEventArgs> TerminalOutput;

        public void Resize(uint rows, uint columns)
        {
            return;
        }
        public void Start()
        {
            TerminalOutput.Invoke(this, new TerminalOutputEventArgs("Terminal started!\r\n"));
            return;
        }
        public void WriteInput(string data)
        {
            if (data.Length == 0) {
                return;
            }
            // Echo back to the terminal, but make backspace/newline work properly.
            var str = data.Replace("\r", "\r\n").Replace("\x7f", "\x08 \x08");
            TerminalOutput.Invoke(this, new TerminalOutputEventArgs(str));
        }

        public void Close()
        {
            return;
        }
    }
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Terminal.Loaded += Terminal_Loaded;
        }
        private void Terminal_Loaded(object sender, RoutedEventArgs e)
        {
            Terminal.Connection = new EchoConnection();
            Terminal.SetTheme(TerminalThemeHelper.Theme.SolarizedDark);
            Terminal.Focus();
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WXUJS.Terminal:

Package Downloads
Serilog.Sinks.StatusMonitor

Serilog.Sinks This program will create a window in which the component status can be displayed, create several terminal windows according to the configuration, and output the log information in Serilog to the corresponding terminal window for display according to the filter conditions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 131 5/23/2026