#12 Keyboard freeze Win NT/2000

Phil Smith

With THE 3.0/3.1RC1 on Win NT/2000, press
ALT+ENTER twice (windowed-->Full Screen-->windowed).
You will not be able to press any more keys (does not
freeze system, only application). This
does not happen on Win 95 with THE 3.1 RC1.

I verified this happens also with the PDCurses "reindeer"
test case.

I looked at the keyboard/mouse message handler. I feel
the problem is in 'pdcurs25\win32\pdckbd.c', (probably
an unhandled message disturbs the state table).


  • Mark Hessling

    Mark Hessling - 2003-01-08

    Logged In: YES

    Please check if this still happens with the 2.6 release.

  • Mark Hessling

    Mark Hessling - 2003-01-08
    • assigned_to: nobody --> rexx
  • William McBrine

    William McBrine - 2005-12-19

    Logged In: YES

    I can confirm that this still happens with THE 3.2 and the
    latest PDCurses from CVS (both compiled with MSVC for
    Win32). It doesn't happen with any other curses program I
    can find. The xmas program doesn't accept input, so I'm not
    sure what you mean there -- I'm guessing that you're
    noticing how the output stops when a key is pressed (fixed
    in CVS), but that's with any keypress, regardless of ALT-ENTER.

  • William McBrine

    William McBrine - 2006-06-19

    Logged In: YES

    I believe I've solved this. In PDC_reset_prog_mode(), in
    win32/pdcscrn.c, SetConsoleMode() is called with
    ENABLE_WINDOW_INPUT, which is a request to be told when
    window events -- like ALT-ENTER -- occur. However, PDCurses
    can't actually do anything with these events (in part
    because it sets the buffer size to match the viewport). Then
    I thought of this bug... "an unhandled message". Sure
    enough, if I take out ENABLE_WINDOW_INPUT, the problem goes

    I still think there's some unusual interaction with THE's
    code here, as it doesn't happen in other programs. But this
    seems to close the issue on the PDCurses side.

    I can see no reason to leave ENABLE_WINDOW_INPUT in... can
    anyone else?

  • William McBrine

    William McBrine - 2006-06-19
    • status: open --> pending-fixed
  • William McBrine

    William McBrine - 2007-04-01
    • status: pending-fixed --> closed-fixed

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

Sign up for the SourceForge newsletter:

No, thanks