Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: ASCII question Message-ID: <15611@smoke.brl.mil> Date: 27 Mar 91 22:56:42 GMT References: <1270@caslon.cs.arizona.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <1270@caslon.cs.arizona.edu> andrew@cs.arizona.edu (Andrei V. Zaitsev) writes: >I have a question about ASCII code. Can I be sure that character >with code 13 will return cursor to the beginning of the line >independently of the terminal type ? >I need this ability for my C program but I do not want to use >curses package because it results in the huge size of the >executable file. If you're sure that USASCII is used, then the answer is "Yes, if ANYthing simple will return the cursor this is the one." In C, try using the escape sequence \r in character constants and string literals. That should port to non-ASCII environments also.