Now printing '\n' on the srv-1 will send "\r\n" so it behaves as expected
rather than having to explicitly send '\r'. git-svn-id: http://picoc.googlecode.com/svn/trunk@343 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
d5811d37d5
commit
968fc12e69
|
@ -34,6 +34,9 @@ char *PlatformGetLine(char *Buf, int MaxLen)
|
||||||
/* write a character to the console */
|
/* write a character to the console */
|
||||||
void PlatformPutc(unsigned char OutCh, union OutputStreamInfo *Stream)
|
void PlatformPutc(unsigned char OutCh, union OutputStreamInfo *Stream)
|
||||||
{
|
{
|
||||||
|
if (OutCh == '\n')
|
||||||
|
putchar('\r');
|
||||||
|
|
||||||
putchar(OutCh);
|
putchar(OutCh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue