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 }}
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
We probably won't have to use this API in the library itself. Once #22 is implemented, we can just leave it up to users to decide how hard they want to try to follow terminal capability information while constructing escape sequences.
One option for implementing this would be to bundle the compiled terminfo files. They could be embedded as resources in a separate System.Terminal.Capabilities.dll which would expose a TerminalCapabilities class for accessing them. That way, users wouldn't have to worry about missing a terminfo database on Windows. This would of course be a separate NuGet package since the complete terminfo database is a bit large for the core package.
Another option would be to embed terminfo.src and parse that instead of the compiled files.
Yet another option, if we're embedding the database anyway, would be to process it during build and just use a C# source generator to emit all the relevant data as C# code...
I think processing the database from source is a non-starter; I don't want to essentially reinvent tic. I also want the Cathode build process to remain super simple (./cake).
So, I think what we'll do is just store the compressed description files in the repository. That's a bit unfortunate, but they don't evolve that often, so the repository size shouldn't be affected too much. We can then have a script that be run manually to update the descriptions (likely by grabbing an ncurses-term package from one of the major Linux distributions).
Activity
alexrp commentedon Nov 21, 2021
We probably won't have to use this API in the library itself. Once #22 is implemented, we can just leave it up to users to decide how hard they want to try to follow terminal capability information while constructing escape sequences.
alexrp commentedon Nov 25, 2021
One option for implementing this would be to bundle the compiled terminfo files. They could be embedded as resources in a separate
System.Terminal.Capabilities.dllwhich would expose aTerminalCapabilitiesclass for accessing them. That way, users wouldn't have to worry about missing a terminfo database on Windows. This would of course be a separate NuGet package since the complete terminfo database is a bit large for the core package.alexrp commentedon Dec 6, 2021
The only question that really remains is: Where should the build of the package fetch the compiled terminfo files from?
alexrp commentedon Dec 30, 2021
Another option would be to embed
terminfo.srcand parse that instead of the compiled files.Yet another option, if we're embedding the database anyway, would be to process it during build and just use a C# source generator to emit all the relevant data as C# code...
alexrp commentedon Dec 14, 2023
I think processing the database from source is a non-starter; I don't want to essentially reinvent
tic. I also want the Cathode build process to remain super simple (./cake).So, I think what we'll do is just store the compressed description files in the repository. That's a bit unfortunate, but they don't evolve that often, so the repository size shouldn't be affected too much. We can then have a script that be run manually to update the descriptions (likely by grabbing an
ncurses-termpackage from one of the major Linux distributions).