09-27-2022, 02:50 PM
Hi there!
I am writing a program that does a whole bunch of background websocket calls to a device. There may be a several to a few hundred calls per "step" and I'd like to log a single dot "." as a sort of progress indicator to the output window. In a console app I would just do Console.Write("."); on each of my websocket read or write calls. That way I get an output like:
Getting Network Interface Statistics and LLDP Neighbors
. . . . . . . . . . . . . . .
That way I know I'm not hung up on some sort of websocket timeout and just waiting for an Exception.
It doesn't seem there's a way to suppress newlines in the print class. I tried using Console.Write. It seems the entire line gets buffered until a newline is added at the end. Is there a way to output a single character to the "output" window inside the editor?
In a WPF application I've had to call something like:
System.Windows.Forms.Application.DoEvents();
to process the rendering of a scrolling textbox. But I'm not sure that's the right approach here?
Thanks!
I am writing a program that does a whole bunch of background websocket calls to a device. There may be a several to a few hundred calls per "step" and I'd like to log a single dot "." as a sort of progress indicator to the output window. In a console app I would just do Console.Write("."); on each of my websocket read or write calls. That way I get an output like:
Getting Network Interface Statistics and LLDP Neighbors
. . . . . . . . . . . . . . .
That way I know I'm not hung up on some sort of websocket timeout and just waiting for an Exception.
It doesn't seem there's a way to suppress newlines in the print class. I tried using Console.Write. It seems the entire line gets buffered until a newline is added at the end. Is there a way to output a single character to the "output" window inside the editor?
In a WPF application I've had to call something like:
System.Windows.Forms.Application.DoEvents();
to process the rendering of a scrolling textbox. But I'm not sure that's the right approach here?
Thanks!