zendframework/zf2 — pull request #2096 by Thinkscape (2012-08-02 15:31:50+00:00)
Title: Fix readChar() on Windows, fix NS import after recent refactor.

### Fix NS import

One of recent refactors has made `Charset` subclasses undiscoverable, breaking `AdapterInterface::getDefaultCharset()` method.

### Workaround Windows limitation and allow for reading chars

Reading a single char, validated against a char mask now works on Windows. The adapter will attempt to use either "choice" command (known since Windows 95) or Windows PowerShell, to obtain a single keystroke from user and validate it against a mask of allowed characters. This method works with both low and high ASCII chars, which enables capturing keys such as cursors, tab, escape, backspace and enter.

### Add Prompt::prompt() convenience method

It is now possible to create prompts by calling static prompt() method, i.e. `$key = Prompt\Char::prompt("Press any key")`.