Skip to content

Commit

Permalink
Fixes gui-cs#2943. Default button bracket glyphs don't work on conhost.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Oct 31, 2023
1 parent d40db95 commit 71f0820
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Terminal.Gui/ConsoleDrivers/WindowsDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,19 @@ public override void UpdateScreen ()
}
_outputBuffer [position].Empty = false;
if (Contents [row, col].Rune.IsBmp) {
_outputBuffer [position].Char = (char)Contents [row, col].Rune.Value;
var rune = Contents[row, col].Rune;
if (Force16Colors)
{
if (rune == Glyphs.LeftBracket)
{
rune = (Rune)'[';
}
else if (rune == Glyphs.RightBracket)
{
rune = (Rune)']';
}
}
_outputBuffer [position].Char = (char)rune.Value;
} else {
//_outputBuffer [position].Empty = true;
_outputBuffer [position].Char = (char)Rune.ReplacementChar.Value;
Expand Down

0 comments on commit 71f0820

Please sign in to comment.