Mail Archives: djgpp-workers/1998/06/14/10:29:33
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 -