Skip to content

Commit

Permalink
Merge pull request CosmosOS#844 from KingLuigi4932/patch-13
Browse files Browse the repository at this point in the history
Fix Blinking Text on (VGA that can blink)
  • Loading branch information
fanoI authored Jan 6, 2018
2 parents e06efd8 + 9a82bbf commit c734c23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/Cosmos.HAL2/TextScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ public override void ScrollUp()

public override void SetColors(ConsoleColor aForeground, ConsoleColor aBackground)
{
Color = (byte)((byte)(aForeground) | ((byte)(aBackground) << 4));
//Color = (byte)((byte)(aForeground) | ((byte)(aBackground) << 4));
// TODO: Use Real Mode to clear in Mode Control Register Index 10
// the third bit to disable blinking and use the seventh bit
// as the bright bit on background color for brighter colors :)
Color = (byte)(((byte)(aForeground) | ((byte)(aBackground) << 4)) & 0x7F);

// The Color | the NUL character this is used to Clear the Screen
mTextClearCellValue = (UInt16)(Color << 8 | 0x00);
}
Expand Down

0 comments on commit c734c23

Please sign in to comment.