Skip to content

Commit

Permalink
Try force carriage returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie authored Mar 15, 2024
1 parent 1499fb9 commit 62f82f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ public RecordingConsole(int width, int height)
public string GetAsciiCastRecording(string title)
{
string json = _writer.GetOutput();
json = Regex.Replace(json, @"\\n", @"\r\n");
json = Regex.Replace(json, @"\\r\\r\\n", @"\r\n");
// count number of times [2A appears in the json
var cursorUps = Regex.Matches(json, @"\[([0-9]+)A");
var countOfCursorUps = 0;
Expand Down

0 comments on commit 62f82f4

Please sign in to comment.