In the usvn package, there is the SysConsole class. You might want to check it.
It is sort of waiting for being moved to CtrlLib or something like that, after perhaps some refurbishing. Maybe you can try it out of usvn context to check what is missing for general use?
I have tested it and I find it useful. In fact I have a class with the same functionality...
Please move it to the main library
I will substitute my class with yours to see if anything else could be necessary.
One thing I would do now is to manage '\r':
Some programs as mencoder or ffmpeg show in a line the status of the process, printing lines one over other
For TeCNoYoTTa: You do not need ExecuteCMD
... as Sys() function just does the same:
int Sys(const char *cmd, String& out)
{
out.Clear();
LocalProcess p;
if(!p.Start(cmd))
return -1;
while(p.IsRunning()) {
out.Cat(p.Get());
Sleep(1); // p.Wait would be much better here!
}
out.Cat(p.Get());
return p.GetExitCode();
}
For Mirek and everybody: To organize us a little
I know it is not the first time I tell it, I see many times that different people do the same thing.
It would be great to have a place to put the "THINGS TO DO" so people that have time can take them and do it. If somebody has not time to follow can ask for help and other people can "pass the baton on to the next relay runner".
We had three implementations of Sys(), now we have two implementations of cryptography.
The reason I announce the things I will do months before is just to coordinate with others, but it is not the best way.
Mirek: Thank you for having Bazaar inside Upp. Other projects do not have the same.
However perhaps it is the time to have some kind of better Bazaar inside or outside Upp web page:
- With a project list with description: All the Bazaar packages visible
- With all documentation: Now Bazaar documentation is not in the web page
- With a TO DO board to organize the next things to do. For Bazaar and Upp main packages