delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/06/14/10:29:33

From: sl AT psycode DOT com (sl)
To: "djgpp-workers AT delorie DOT com" <djgpp-workers AT delorie DOT com>
Date: Sun, 14 Jun 98 10:34:57
Reply-To: "Gili" <sl AT psycode DOT com>
MIME-Version: 1.0
Subject: ScreenGetChar() and ScreenPutChar()
Message-ID: <19980614142042007.AAA221@portX56.lanzen.net>

Hello,

	In both ScreenGetChar() and ScreenPutChar(), the arguments 'ch'
and 'attr' are of type 'int*'.. This may be understable for
international characters (which, to my understanding, require to be
int-based) however, I see no justification for using an int for the
attribute. Even gettextinfo() returns an unsigned char for the text
attribute...

	I therefore suggestion that the implementation of
ScreenGetchar() and ScreenPutChar() be changed so 'attr' is of type
unsigned char* and that the info documentation for these commands
include the following warning message:

"NOTE: 'ch' is int-based for international characters. You should never
attempt using an unsigned char in its place."

	Thank you,

Gili

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019