console-redirect

Redirecting Console Output to winforms ListBox.

Hi There, I have built a library that dumps most of its debug text using Console.WriteLine(); I am now I am the process of using the library in a Windows Forms Application, and still need access to the Console output. ( To Display in a List/RichText box ) I Noticed I can override the standard out of the console to a TextWriter, b...

Realtime Console Output Redirection using Process

Hi Guys, I am using VBOXMANAGE to "export" a guest machine. VBOXManage is a Console application that can control the guest machine's behavior from the host. Since the export command is a long process, it returns process updates like so: 0%...10%...20%...30%...100% I am writing a C# application that will invoke VBOXManage using Process...

c# Unit Test for a method which is calling Console.ReadLine()

Hi everyone first post here. I want to create a unit test for a member function of a class called ScoreBoard which is storing the TOP5 players in a simple game. The problem is that the method i am creating test for(SignInScoreBoard) is calling Console.ReadLine() so the User can type his name. public void SignInScoreBoard(int steps...

Can the console output of a Windows console application be captured fully (incl. advanced manipulations)?

It is a trivial matter of redirecting a console program's standard input/output, but what about if the program uses advanced console functions? Like outputting colored text, throwing the cursor around and manipulating the console buffer directly? Can that also be captured and redirected to my own program for processing? Note: I'm talkin...