Wednesday September 8, 2010
Hello,
I was looking at the source code files located in the directory:
\hardware\leaflabs\cores\maple\*.*
I am probably missing something subtle. I thought "\r\n" was used in Linux (and flavors of Linux, including Mac OS), but that Windows/DOS needed only "\n".
I was surprised when I saw "\r" in several files.
From file: Print.cpp
void Print::println(void)
{
print('\r');
print('\n');
}
From file: usb.c [function void usbSendHello(void)]
char *line = "\r\n";
From file: syscalls.c [function void cgets(char *s, int bufsize)]
case '\r' :
case '\n' :
putch('\r');
putch('\n');
*p = '\n';
return;
I am using Windows XP Professional SP3 and Maple IDE 0.0.6.
Thanks!
Stephen from NYC