gitlabEdit

ghostInterop with Spectre.Console

Can Terminaux and Spectre.Console be together?

If you are using Spectre.Consolearrow-up-right, you might notice that there are some features that are roughly similar to what Terminaux implements if we're talking about ideas and concepts. While Spectre.Console focuses on CLI, Terminaux focuses on both CLI and TUI. However, the graphical part of Spectre.Console, such as table rendering, is implemented differently in both libraries.

In a separate library, Terminaux.Spectrearrow-up-right, you can perform translation operations.

circle-info

Please note that, when installing this package, Spectre.Console is also installed as a dependency.


Translation

You can translate Terminaux's renderables into Spectre.Console's renderables, but you can't translate the other way around due to how Spectre.Console implements them. The following translation methods are supported:

Source
Direction
Target

Mark

Terminaux -> Spectre.Console

BoxFrame

Terminaux -> Spectre.Console

Table

Terminaux -> Spectre.Console

BarChart

Terminaux -> Spectre.Console

BreakdownChart

Terminaux -> Spectre.Console

Calendars

Terminaux -> Spectre.Console

AlignedFigletText

Terminaux -> Spectre.Console

Canvas

Terminaux -> Spectre.Console

TextPath

Terminaux -> Spectre.Console

TextAlignment

Terminaux -> Spectre.Console

Justify

Justify

Spectre.Console -> Terminaux

TextAlignment

Color

Terminaux -> Spectre.Console

Spectre.Console -> Terminaux

Color

circle-info

You can't use Terminaux's writers to write the resulting Spectre's IRenderablearrow-up-right. You'll have to use the AnsiConsolearrow-up-right class.

Last updated