From 65e9287a1b90fc16fbfca72fbd66e2a5656d406e Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Sat, 5 Jan 2019 16:03:31 +0100 Subject: [PATCH] color not reset after line ends --- tldr-sharp/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tldr-sharp/Program.cs b/tldr-sharp/Program.cs index 4ea7d94..61bac28 100644 --- a/tldr-sharp/Program.cs +++ b/tldr-sharp/Program.cs @@ -274,10 +274,10 @@ private static int Render(string path) Console.WriteLine("\x1b[1m" + curLine.Substring(2) + "\x1b[0m"); break; case '-': - Console.WriteLine("\x1b[39m\n" + curLine); + Console.WriteLine("\x1b[39m\n" + curLine + "\x1b[0m"); break; case '`': - Console.WriteLine(" \x1b[31m" + curLine.Trim('`')); + Console.WriteLine(" \x1b[31m" + curLine.Trim('`') + "\x1b[0m"); break; default: Console.WriteLine(curLine);