krnlException
krnlException
CC#
Created by krnlException on 6/27/2023 in #help
❔ Using Windows Terminal progress bar in c#
Thanks, imo this should be documented in some way
19 replies
CC#
Created by krnlException on 6/27/2023 in #help
❔ Using Windows Terminal progress bar in c#
Where 10 is progress
19 replies
CC#
Created by krnlException on 6/27/2023 in #help
❔ Using Windows Terminal progress bar in c#
^[]9;4;1;10^[\
19 replies
CC#
Created by krnlException on 6/27/2023 in #help
❔ Using Windows Terminal progress bar in c#
In a issue about that progress ring, I've found a string of characters to trigger it
19 replies
CC#
Created by krnlException on 4/18/2023 in #help
❔ Processing window messages in while loop in console
Okay, thank you, it works
17 replies
CC#
Created by krnlException on 4/18/2023 in #help
❔ Processing window messages in while loop in console
I know there's a Form.FormClosing event on WinForms, but is there a similar one for console apps
17 replies
CC#
Created by krnlException on 4/18/2023 in #help
❔ Processing window messages in while loop in console
using System.Diagnostics;
using System.Runtime.InteropServices;

class Program
{
static void Main(string[] args)
{
bool running = true;
while (running)
{
//code
Thread.Sleep(1000);
}
}
}
using System.Diagnostics;
using System.Runtime.InteropServices;

class Program
{
static void Main(string[] args)
{
bool running = true;
while (running)
{
//code
Thread.Sleep(1000);
}
}
}
17 replies
CC#
Created by krnlException on 4/18/2023 in #help
❔ Processing window messages in while loop in console
So basically I need some way to set that running bool to false when user wants to close the window.
17 replies
CC#
Created by krnlException on 4/18/2023 in #help
❔ Processing window messages in while loop in console
My app has a while(running) loop and running bool controls that while loop, and I need my app to process window messages (such as user clicking X on window, or Ctrl+C to exit) in that loop
17 replies