Additional fixes

This commit is contained in:
jim
2026-05-05 00:04:40 -05:00
parent 5e62b58261
commit 354bb9cc8e
2 changed files with 4 additions and 2 deletions
-2
View File
@@ -1836,7 +1836,6 @@ namespace URLNotesGrabberCORE
{ {
SaveState(); SaveState();
_activeKey = key; _activeKey = key;
Console.ForegroundColor = key.ParsedColor;
return key; return key;
} }
@@ -1856,7 +1855,6 @@ namespace URLNotesGrabberCORE
} }
_activeKey = key; _activeKey = key;
Console.ForegroundColor = key.ParsedColor;
return key; return key;
} }
+4
View File
@@ -15,6 +15,10 @@ namespace URLNotesGrabberCORE
static void Main(string[] args) static void Main(string[] args)
{ {
// Reset console color on exit (including Ctrl+C)
Console.CancelKeyPress += (s, e) => Console.ResetColor();
AppDomain.CurrentDomain.ProcessExit += (s, e) => Console.ResetColor();
IConfiguration config = new ConfigurationBuilder() IConfiguration config = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)