ASCII question

Doug Gwyn gwyn at smoke.brl.mil
Thu Mar 28 08:56:42 AEST 1991


In article <1270 at caslon.cs.arizona.edu> andrew at 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.



More information about the Comp.unix.questions mailing list