TJHJ
03-31-2009, 10:25 PM
Ok So I suspect that this might be from my own fault but if anyone has any suggestions or ideas.
I am having a hard time making any terminal program universal. Personally I like to use the PST terminal over the built in ICCv7 terminal, but in order to have it display correctly in one it shows up all messed up in the other.
Example.
putchar(0); // Clear the screen
printf("Some String %c", 13); // Some string followed by a CR
printf("Some more string %c", 13); // More stuff followed by a CR
Ok in the PST this comes out correctly, in the ICCv7 terminal the CR command does not seem to create a new line. It just prints all the lines on top of each other.
putchar(0); // Clear the screen
printf("Some String %c", '\n'); // Some string followed by a new line
printf("Some more string %c", '\n'); // More stuff followed by a new line
This code seems to make ICCv7 Show correctly but makes PST show up strange.
here is what I get in PST
Some String
Some More string
The next new line starts printing here.
Any suggestions or ideas?
Thanks
TJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250
I am having a hard time making any terminal program universal. Personally I like to use the PST terminal over the built in ICCv7 terminal, but in order to have it display correctly in one it shows up all messed up in the other.
Example.
putchar(0); // Clear the screen
printf("Some String %c", 13); // Some string followed by a CR
printf("Some more string %c", 13); // More stuff followed by a CR
Ok in the PST this comes out correctly, in the ICCv7 terminal the CR command does not seem to create a new line. It just prints all the lines on top of each other.
putchar(0); // Clear the screen
printf("Some String %c", '\n'); // Some string followed by a new line
printf("Some more string %c", '\n'); // More stuff followed by a new line
This code seems to make ICCv7 Show correctly but makes PST show up strange.
here is what I get in PST
Some String
Some More string
The next new line starts printing here.
Any suggestions or ideas?
Thanks
TJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250