Ticket #16 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Add Ctrl-C handler to Win32 backend.

Reported by: judah Owned by:
Priority: minor Milestone:
Version: 0.1 Keywords:

Description (last modified by judah) (diff)

Use GHC.ConsoleHandler to add ctrl-c handling to the Win32 backend.

Change History

Changed 9 years ago by judah

  • priority changed from major to minor
  • version set to 0.1
  • type changed from defect to enhancement
  • description modified (diff)

The main issue is that the foreign call to ReadConsoleInput is not interruptible, and threadWaitRead stdInput isn't available on Windows.

Changed 9 years ago by anonymous

GHC tasks which might make this easier:

  • 1198: hWaitForInput doesn't work properly on Windows
  • 2363: getChar, hWaitForInput et al can't be interrupted with -threaded (I'm not sure whether this occurs on Win32)

Changed 9 years ago by judah

Implemented and tested under wine; just needs testing on actual Windows PC.

Changed 9 years ago by judah

  • status changed from new to closed
  • resolution set to fixed

Tested fine.

Note: See TracTickets for help on using tickets.