Interface ITerminalConnection
A byte stream between the terminal and whatever drives it: a network service, a pty, or an in-process program. Connected, DataReceived, and Closed may fire on any thread; TerminalSession marshals them to the main thread. Closed fires at most once, and never after Dispose.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public interface ITerminalConnectionProperties
Section titled “Properties”IsConnected
Section titled “IsConnected”bool IsConnected { get; }Methods
Section titled “Methods”Connect()
Section titled “Connect()”Starts connecting and returns at once; Connected or Closed reports the outcome.
void Connect()Send(byte[], int, int)
Section titled “Send(byte[], int, int)”Queues bytes for the far end. Never blocks on the network.
void Send(byte[] data, int offset, int count)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
data |
System.Int32 |
offset |
System.Int32 |
count |
NotifyResize(int, int)
Section titled “NotifyResize(int, int)”The terminal grid changed size. Connections that can pass this on do.
void NotifyResize(int cols, int rows)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
cols |
System.Int32 |
rows |
Events
Section titled “Events”Connected
Section titled “Connected”The stream is open and data can flow.
event Action ConnectedEvent Type
Section titled “Event Type”System.Action
DataReceived
Section titled “DataReceived”event Action<byte[]> DataReceivedEvent Type
Section titled “Event Type”System.Action<System.Byte[]>
Closed
Section titled “Closed”event Action<CloseReason> ClosedEvent Type
Section titled “Event Type”System.Action<DarkEffekt.Terminal.CloseReason>