Pixie is a C# library for beautiful and portable console output formatting/typesetting.
Pixie.Loyc is an optional integration package for applications that already depend on Loyc libraries such as EC# or LeMP.
Install it only when you need to translate Loyc diagnostics into Pixie output:
dotnet add package Pixie.Loyc
The main entry point is PixieMessageSink, which implements Loyc’s IMessageSink and forwards messages into a Pixie ILog.
That means Loyc diagnostics can use the same rendering pipeline as the rest of your CLI output, including:
using Pixie;
using Pixie.Loyc;
using Pixie.Terminal;
using Pixie.Transforms;
var log = TerminalLog.Acquire().WithDiagnostics("program");
var messageSink = new PixieMessageSink(log);
Once you have a PixieMessageSink, pass it anywhere Loyc expects an IMessageSink.
The repository example at Examples/LoycInterop/Program.cs shows the full flow:
PixieMessageSink.If you also need source document reuse across multiple inputs, look at SourceDocumentCache in the Pixie.Loyc package.