Open tig opened 4 years ago
I recently implemented this in SwiftTerm - the good news is that you don’t need the MatchColor, that whole chunk of code is wrong.
Greg who used to be on the VSMac team was merging the improvements I was doing on SwiftTerm regularly until he moved on to another project.
This is the commit that got true color support to SwiftTerm:
https://github.com/migueldeicaza/XtermSharp/blob/master/XtermSharp/Terminal.cs#L683
The code in
InputHandler.cs
looks right:But without
MatchColor
implemented, 24bit color is not implemented. The spec is:I tried a naïve try:
I obviously don't know what I'm doing because this always returns 255 even though in the debugger I see my values for
r1
,g1
, andb1
being passed in.What is the value of the the
int fg
andint bg
supposed to hold?I built this too to help:
What am I doing wrong/missing?