code guidelines

This commit is contained in:
2020-10-09 19:35:39 +01:00
parent 7b529cd3e8
commit c907b387d7
82 changed files with 470 additions and 375 deletions

View File

@ -18,11 +18,13 @@ namespace Yavsc.Helpers
public static Stream GetStream(StreamReader reader)
{
var procStart = new ProcessStartInfo("node", "node_modules/ansi-to-html/bin/ansi-to-html");
procStart.UseShellExecute = false;
procStart.RedirectStandardInput = true;
procStart.RedirectStandardOutput = true;
// procStart.RedirectStandardError = true;
var procStart = new ProcessStartInfo("node", "node_modules/ansi-to-html/bin/ansi-to-html")
{
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true
};
// procStart.RedirectStandardError = true;
var mem = new MemoryStream();
var writer = new StreamWriter(mem);
var proc = Process.Start(procStart);
@ -54,4 +56,4 @@ namespace Yavsc.Helpers
return GetStream(reader);
}
}
}
}