Table of Contents

Property AssociatedText

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

AssociatedText

Gets the associated text reported by the kitty keyboard protocol (flag 16).

public string AssociatedText { get; init; }

Property Value

string

Remarks

When the terminal reports associated text, this contains the exact text produced by the key event. This is preferred for text insertion because it preserves layout-specific printable characters. For example, in kitty input like ESC[50:64;2;64u, the primary key code is '2', the shifted alternate key code is '@', and the associated text is also '@'.

Defaults to Empty when the terminal does not report associated text.

This property does not participate in equality comparisons.