Frank Heckenbach wrote:
Couperin wrote:
In programs compiled using the CRT unit, the keys /, *, -, + and ENTER of the numeric keypad are no longer availables (they display other characters). How to solve this problem ?
Does this happen only recently (since the update of PDCurses for DJGPP)?
Which other characters do you get? Can you find out what codes they give in C (using curses). I'm not sure if PDCurses comes with an according test program, but AFAIK the corresponding tests from ncurses can also be used with PDCurses.
If you can't easily test it, perhaps Maurice can. If you have the codes, it should be easy to translate them in crtc.c (e.g., like it's done with PADSTAR etc. which are the normal codes for these keys).
For me (djgpp/w98se/gpc-20020410) * - + work as expected but / and Enter give extended 255 with the following small test program:
-------------------------------------------------------------
program kybtest; uses crt; var c:char; begin writeln('hit some key (end for $)'); repeat c:=readkey; if c=#0 then begin c:=readkey; writeln('extended ',c,ord(c):5) end else writeln(' ',c,ord(c):5); until c='$'; end.
-------------------------------------------------------------
(with BP the same gives all as expected).
Maurice