9 hours ago, ZeroByte said:
I was wondering what the difference was. I know that in cc65, cprintf() fails to scroll the screen and interprets \n as CR whereas printf() scrolls and interprets \n as CRLF. cprintf could probably stand to be fixed in its cx16 implementation....
Their philosophies are different. stdio is stream-oriented, while conio is screen-oriented.
A stdio program is expected just to print and print and print and... It cares little about the height of a screen.
A conio program is expected to stay on a single screen. It reuses that screen's real estate. It overwrites old text with new text.
That's why conio has ...xy() positioning functions. It's why there are cclear... functions. And, it's why carriage return and line feed are separate characters. We can use carriage return to type and retype on the same line.