Skip to content

Commit

Permalink
Removed ability to write characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_pollard committed Jan 14, 2025
1 parent a5a96a2 commit 10e6e7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
4 changes: 2 additions & 2 deletions NetAF/Rendering/Console/GridTextFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void Render(IFramePresenter presenter)
presenter.Write(Ansi.GetAnsiForegroundEscapeSequence(builder.GetCellColor(x, y)));
}

presenter.Write(c);
presenter.Write(c.ToString());
}
else
{
Expand All @@ -102,7 +102,7 @@ public void Render(IFramePresenter presenter)
}

if (y < builder.DisplaySize.Height - 1)
presenter.Write(builder.LineTerminator);
presenter.Write(builder.LineTerminator.ToString());
}

presenter.Write(Ansi.ANSI_SHOW_CURSOR);
Expand Down
4 changes: 2 additions & 2 deletions NetAF/Rendering/Console/GridVisualFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private void RenderCharacter(IFramePresenter presenter, int x, int y, bool suppr
{
var foregroundColor = GetForegroundColor(x, y, suppressColor);
UpdateForegroundColor(presenter, x, y, foregroundColor, ref lastForeground);
presenter.Write(c);
presenter.Write(c.ToString());
}
else
{
Expand Down Expand Up @@ -162,7 +162,7 @@ public void Render(IFramePresenter presenter)
}

if (y < builder.DisplaySize.Height - 1)
presenter.Write(builder.LineTerminator);
presenter.Write(builder.LineTerminator.ToString());
}
}

Expand Down
9 changes: 0 additions & 9 deletions NetAF/Rendering/Console/TextWriterPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ public override string ToString()

#region Implementation of IFramePresenter

/// <summary>
/// Write a character.
/// </summary>
/// <param name="value">The character to write.</param>
public void Write(char value)
{
writer.Write(value);
}

/// <summary>
/// Write a string.
/// </summary>
Expand Down
5 changes: 0 additions & 5 deletions NetAF/Rendering/IFramePresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
/// </summary>
public interface IFramePresenter
{
/// <summary>
/// Write a character.
/// </summary>
/// <param name="value">The character to write.</param>
void Write(char value);
/// <summary>
/// Write a string.
/// </summary>
Expand Down

0 comments on commit 10e6e7c

Please sign in to comment.