Re: [cc65] Atari cprintf bug?

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-10-23 21:08:41


On Wed, Oct 23, 2002 at 10:23:11AM -0700, Shawn Jefferson wrote:
> I just noticed that cprintf doesn't seem to handle the newline character properly...
   
It's not a bug, it's a feature:-)

The conio routines handle '\n' differently to the C stream functions:

    '\n' is a newline, which means that the cursor is placed into the line
    below.

    '\r' is a carriage return, which means that the cursor is placed at the
    beginning of the line.

Conio mode is comparable to a typewriter (if you are old enough to know such a
thing:-), where newline and carriage return were two different things. The
reason is to give you more control over cursor movement.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-10-23 21:08:48 CEST