#19 lcc-port badly broken

closed-fixed
None
5
2007-05-14
2002-11-25
Anonymous
No

There seems to be a problem with the input routines and
'extended' keys that makes the lcc-port of pdcurses 2.4
basically unuseable. Here's a small C snipplet that
demonstrates the bug:

#include <curses.h>

int main(void)
{
int key;

initscr();
keypad(stdscr, TRUE);
nonl();
intrflush(stdscr, FALSE);
cbreak();
noecho();
curs_set(0);

clear();
refresh();

do {
key = getch();
refresh();

key = getch();
refresh();

mvaddch(5,5, key);
refresh();

} while (key != 'x');

endwin();

return 0;
}

Try hitting an arrow key. You will see
a character but you shouldn't. One arrow key press
will 'run' through multiple getch() calls.
If you still don't understand what's wrong:
if you start this program and hit the following
keys: arrow up, j. You should see a 'j' on
screen (at least if I understand the curses
standard correctly) but you won't.
The DJGPP port works fine BTW. So it seems
to be a problem of the lcc-port (or maybe
a more general problem of the Windows port?)

The makefile for lcc is outdated by the way.
The current version of the compiler complains
about unsupported options..

Please fix this as fast as possible and release
a bugfix version.

Discussion

  • Mark Hessling

    Mark Hessling - 2003-01-08
    • assigned_to: nobody --> rexx
    • status: open --> closed
     
  • Mark Hessling

    Mark Hessling - 2003-01-08

    Logged In: YES
    user_id=86185

    Fixed in 2.6 (source) released today.

     
  • William McBrine

    William McBrine - 2007-05-14
    • status: closed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks