A library to read compiled, binary terminfo descriptions.
// Load the active terminfo description
var info = TermInfoDesc.Load();
// Load via terminfo name
var info = TermInfoDesc.Load("xterm-256color");
// Default capabilities are strongly typed
Debug.Assert(info.MaxColors == 256)
// But extended capabilities are also supported
bool? ax = info.Extended.GetBoolean("AX");
int? u8 = info.Extended.GetNum("U8");
string? kup = info.Extended.GetNum("kUP");> dotnet build.cs
This code is partly a port of https://github.com/xo/terminfo, licensed under MIT.