mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
21 lines
787 B
C#
21 lines
787 B
C#
#nullable enable
|
|
using System.Collections.Concurrent;
|
|
|
|
namespace Terminal.Gui.Drivers;
|
|
|
|
/// <summary>
|
|
/// <see cref="IComponentFactory{T}"/> implementation for native csharp console I/O i.e. dotnet.
|
|
/// This factory creates instances of internal classes <see cref="NetInput"/>, <see cref="NetOutput"/> etc.
|
|
/// </summary>
|
|
public class NetComponentFactory : ComponentFactoryImpl<ConsoleKeyInfo>
|
|
{
|
|
/// <inheritdoc/>
|
|
public override IInput<ConsoleKeyInfo> CreateInput () { return new NetInput (); }
|
|
|
|
/// <inheritdoc/>
|
|
public override IInputProcessor CreateInputProcessor (ConcurrentQueue<ConsoleKeyInfo> inputBuffer) { return new NetInputProcessor (inputBuffer); }
|
|
|
|
/// <inheritdoc/>
|
|
public override IOutput CreateOutput () { return new NetOutput (); }
|
|
}
|