Actually fixed #5.

The error was caused by events firing in a different order
depending on the text console API used (TWAPI vs. raw vs. none)
and the platform.