hoaproject/Console — pull request #1 by mrkmg (2012-11-14 16:26:05+00:00)
Title: Added in autocomplete ability to Readline

Added in tab to auto-complete functionality to Console\Readline

When tab is pressed, the function set with `->setAutocomplete()` will be called with 2 parameters. The first parameter is all the text before the currently tabbed on word. The second parameter is the currently tabbed on words. The function should return an array of all the possible auto-completions. There are 3 cases:

**More than 1 result**
All results are displayed, then the line is auto-completed as far as possible

**Exactly 1 result**
The line is completed

**No results**
Nothing happens

______________

Also moved the setting and restoring of the STTY to public functions so the user can set and restore as needed.