Results 1 to 11 of 11

Thread: [RESOLVED] Console.UpdateText?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Resolved [RESOLVED] Console.UpdateText?

    I am sure some of you know of Handbrake, and it's CLI. Now I am trying use this CLI, and read its standard output to get the progress. But the problem is, they are not using Console.WriteLine to write the progress in their CLI, they are using something else

    If I read the standardoutput I only get this line:

    Encoding task 1 of 2 blabla 0.00%

    But if I don't redirect outputs or set CreateNoWindow to true, so the CLI shows up in its own window, I can see that the progress is ticking.

    What I wonder is if there exist anything like Console.UpdateText, where you don't write a newline, you just edit the last written one.
    And if so, how to read it?

    I am reading with this code:

    Code:
    string str;
    
                while ((str = prc.StandardOutput.ReadLine()) != null)
                {
                        Console.Write(str);
                }
    Last edited by Cyb3rH4Xter; Feb 5th, 2011 at 11:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width