You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDriver.GetVersionInfo is not needed. Add IDriver.KittyKeyboardCapabilities which is a refactoring of KittyKeyboardProtocol and KittyKeyboardProtocolResult #4926
Remove IDriver.GetVersionInfo() - its only caller is UICatalogRunnable for a status bar label, and its implementation (DriverImpl) just returns "{GetName()} driver", which is redundant with GetName().
Add IDriver.KittyKeyboardCapabilities - replace the scattered KittyKeyboardProtocol/KittyKeyboardProtocolResult surface with a single clean property on IDriver.
Remove GetVersionInfo() from IDriver and DriverImpl.
Update UICatalogRunnable to call GetName() directly.
2. Add IDriver.KittyKeyboardCapabilities
Current state
KittyKeyboardProtocolResult holds three properties and is stored on DriverImpl with no corresponding member on IDriver:
publicclassKittyKeyboardProtocolResult{publicboolIsSupported{get;set;}publicKittyKeyboardFlagsSupportedFlags{get;set;}publicKittyKeyboardFlagsEnabledFlags{get;set;}}// DriverImpl.cs - not on IDriver, so callers must castpublicKittyKeyboardProtocolResultKittyKeyboardProtocol{get;privateset;}=new();internalvoidSetKittyKeyboardProtocol(KittyKeyboardProtocolResultresult)=>KittyKeyboardProtocol=result;
AnsiComponentFactory.GetDriverName() works around this with a TODO comment rather than going through IDriver.
Proposed
Rename KittyKeyboardProtocolResult to KittyKeyboardCapabilities.
Add to IDriver:
/// Gets the terminal kitty keyboard protocol capabilities detected at startup./// null if the terminal was not queried or does not support the protocol.KittyKeyboardCapabilities?KittyKeyboardCapabilities{get;}
Remove DriverImpl.SetKittyKeyboardProtocol; implement the property.
Update AnsiComponentFactory, KittyKeyboardProtocolDetector, MainLoopCoordinator, and all tests/scenarios.
Activity
Fixes tui-cs#4926. Remove IDriver.GetVersionInfo, add IDriver.KittyKe…