View Single Post
Old 2020-07-26, 14:21   #573
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

D3916 Posts
Default

Quote:
Originally Posted by RichD View Post
What about printing 8 spaces to the screen with a <CR> right before the log entry. Anything left on the line is overwritten by the composite.
Code:
printf("        \r");
I just came up with basically the same thing as you, but (I think) it needs 10 spaces to cover indices in the 1xxxx:

Change line 1327 in the GitHub version from:
Code:
        cout << msg1 << (factors.size() == 1 && factors[0].second == 1 ? "prp" : "c") << n.get_str().size() << " = " << msg2 << msg3 << endl;
to:
Code:
        cout << "          \r" << msg1 << (factors.size() == 1 && factors[0].second == 1 ? "prp" : "c") << n.get_str().size() << " = " << msg2 << msg3 << endl;
What do you guys think?

Edit 2: As an additional note, line 904's comment is incorrect. It should be changed from:
Code:
//output a result line to screen and elf file
to:
Code:
//output a result line to elf file
It does not do anything with screen output.

Last fiddled with by EdH on 2020-07-26 at 14:33 Reason: formatting
EdH is offline   Reply With Quote