b9233c03d1
This adds the WPF control to our project, courtesy of the Visual Studio team. It re-hosts the Terminal Control components inside a reusable WPF adapter so it can be composed onto C# type surfaces like Visual Studio requires.
30 lines
881 B
C#
30 lines
881 B
C#
// <copyright file="TerminalOutputEventArgs.cs" company="Microsoft Corporation">
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
// </copyright>
|
|
|
|
namespace Microsoft.Terminal.Wpf
|
|
{
|
|
using System;
|
|
|
|
/// <summary>
|
|
/// Event args for output from the terminal backend.
|
|
/// </summary>
|
|
public class TerminalOutputEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="TerminalOutputEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="data">The backend data associated with the event.</param>
|
|
public TerminalOutputEventArgs(string data)
|
|
{
|
|
this.Data = data;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the data sent from the terminal backend.
|
|
/// </summary>
|
|
public string Data { get; }
|
|
}
|
|
}
|