Carriage Return over Telnet
How is carriage return represented over telnet? "\n", "\r\n", etc? I''m using C as my programming langauge. thanks
/*Joe DiMichele C/C++/VB Programmer, A+ Certified Technician AIM:Krawling Khaos, ICQ:332871787 joedimichele@hotmail.com oderint dum metuantExcuse my spelling, programmers can't spel*/
The ASCII keycode for a carriage return is 13
\r should also work just fine. \n is a combination carriage return and line feed.
\r should also work just fine. \n is a combination carriage return and line feed.
Disclaimer: "I am in no way qualified to present advice on any topic concerning anything and can not be held responsible for any damages that my advice may incurr (due to neither my negligence nor yours)"
I always thought \n was the newline character. Hence the tradition of using it with a \r to place the text cursor at the beginning of the next line. I also know some software will expand \n into a \r\n pair.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement