IReplSessionInfo
Provides read-only information about the current REPL session. Injectable as a handler parameter to inspect client and transport properties.
- Kind:
Interface - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/IReplSessionInfo.cs
Signature
Section titled “Signature”public interface IReplSessionInfoProperties
Section titled “Properties”AnsiSupported
Section titled “AnsiSupported”Gets a value indicating whether the client supports ANSI/VT escape sequences.
bool AnsiSupported { get; }Returns
Section titled “Returns”RemotePeer
Section titled “RemotePeer”Gets remote peer information for the active session (for example “203.0.113.7:50124”), or null when unknown.
string? RemotePeer { get; }Returns
Section titled “Returns”TerminalCapabilities
Section titled “TerminalCapabilities”Gets the terminal capability flags reported or inferred for the current session.
TerminalCapabilities TerminalCapabilities { get; }Returns
Section titled “Returns”TerminalIdentity
Section titled “TerminalIdentity”Gets the terminal identity reported by the client (e.g. “xterm-256color”), or null when unknown.
string? TerminalIdentity { get; }Returns
Section titled “Returns”TransportName
Section titled “TransportName”Gets the transport name (e.g. “websocket”, “telnet”, “signalr”), or null for local console.
string? TransportName { get; }Returns
Section titled “Returns”WindowSize
Section titled “WindowSize”Gets the current terminal window size, or null when unknown.
This value updates live as the client resizes.
(int Width, int Height)? WindowSize { get; }Returns
Section titled “Returns”(int Width, int Height)?