Skip to content

Commit

Permalink
Console Driver code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Apr 16, 2024
1 parent 97351c3 commit 8d2c64a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Terminal.Gui/ConsoleDrivers/ConsoleDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,24 +294,13 @@ public void AddStr (string str)

for (var i = 0; i < runes.Count; i++)
{
//if (runes [i].IsCombiningMark()) {

// // Attempt to normalize
// string combined = runes [i-1] + runes [i].ToString();

// // Normalize to Form C (Canonical Composition)
// string normalized = combined.Normalize (NormalizationForm.FormC);

// runes [i-]
//}
AddRune (runes [i]);
}
}

/// <summary>Clears the <see cref="Contents"/> of the driver.</summary>
public void ClearContents ()
{
// TODO: This method is really "Clear Contents" now and should not be abstract (or virtual)
Contents = new Cell [Rows, Cols];
//CONCURRENCY: Unsynchronized access to Clip isn't safe.
// TODO: ClearContents should not clear the clip; it should only clear the contents. Move clearing it elsewhere.
Expand All @@ -326,7 +315,9 @@ public void ClearContents ()
{
Contents [row, c] = new Cell
{
Rune = (Rune)' ', Attribute = new Attribute (Color.White, Color.Black), IsDirty = true
Rune = (Rune)' ',
Attribute = new Attribute (Color.White, Color.Black),
IsDirty = true
};
_dirtyLines [row] = true;
}
Expand Down

0 comments on commit 8d2c64a

Please sign in to comment.