TerminalWorkingDirectory
Namespace: Hex1b
Assembly: Hex1b.dll
Contains the working directory last reported by a shell using OSC 7.
csharp
public sealed record TerminalWorkingDirectory : IEquatable<TerminalWorkingDirectory>Inheritance
Object → TerminalWorkingDirectory
Implements
Properties
Host
Gets the reported host name, or null if none was present or no directory has been reported. An empty host (as in file:///path) is reported as an empty string.
Returns: String
csharp
public string? Host { get; }Path
Gets the percent-decoded local path, or null if no directory has been reported.
Returns: String
csharp
public string? Path { get; }Uri
Gets the raw reported URI, or null if no directory has been reported.
Returns: String
csharp
public string? Uri { get; }Remarks
This reflects the most recently reported directory only, not a history of visited directories. No directory is inferred from output; it is only ever set from OSC 7.