Re: [cc65] CH_ENTER ?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-10-02 21:47:20
Hi!

On Sat, Oct 02, 2010 at 05:21:56PM +0200, Oliver Schmidt wrote:
> Are the values of \n and \r constant over all targets or are they
> potentially subject to some sort of mapping?

I would think that you cannot rely on them being either \r or \n. It depends
on the platform. 

I remember a discussion about the CH_xxx constants where I wrote that one of
the difficulties is the dual nature of the constants: They're used as key
codes and also as output characters. Unfortunately, I don't remember the
outcome of the discussion. But I would think CH_ENTER is a key on the
keyboard, so there is no mapping. It is returned by cgetc(), and any numeric
code is possible.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Oct 2 21:47:28 2010

This archive was generated by hypermail 2.1.8 : 2010-10-02 21:47:31 CEST