Enable arrow keys to browse matched autocomplete options
[2.1] [Console] Added getTerminalDimensions() with fix for osx/freebsd
Revert "merged branch egeloen/f-2.0-terminal-width (PR #6571)"

This reverts commit 515769385a00b0fb1ddeafb6a0db1c50e8f6b8d2, reversing
changes made to cd0a9d7a1d5f383b931fff21a82e29d53362065e.
Merge branch '2.0' into 2.1

* 2.0:
  Revert "merged branch egeloen/f-2.0-terminal-width (PR #6571)"
[Console] made Application::getTerminalDimensions() public
Merge branch '2.1'

* 2.1:
  [Console] made Application::getTerminalDimensions() public
  Revert "merged branch egeloen/f-2.0-terminal-width (PR #6571)"
  [2.1] [Console] Added getTerminalDimensions() with fix for osx/freebsd
  Restrict Monolog version to be in version `<1.3`. Because of conflict between `HttpKernel/Log/LoggerInterface` and `Psr\Log\LoggerInterface` (PSR-3)

Conflicts:
	composer.json
Not much use in blanking the array each time
Use strpos in place of substr
Add new tests and fix problem with the second option being chosen on down arrow
merged branch lmcd/autocomplete-arrows-new (PR #6564)

This PR was merged into the master branch.

Commits
-------

2b73975 Add new tests and fix problem with the second option being chosen on down arrow
8a0bcfb Use strpos in place of substr
9864d95 Not much use in blanking the array each time
a4d711c Enable arrow keys to browse matched autocomplete options

Discussion
----------

[Console] Enable arrow keys to browse matched autocomplete options

See notes in original autocomplete pull request: #6391
See also @bamarni's pull request implementing more or less the same stuff: #6561

---------------------------------------------------------------------------

by fabpot at 2013-01-05T10:12:47Z

Looks good to me. Can you add some unit tests?

---------------------------------------------------------------------------

by bamarni at 2013-01-05T12:51:51Z

1 line addition... you definitely got me on the diff!

That's what I had mind too, excepted for the default highlight, but as you said it's usually displayed in the question so it 's not necessary. :+1:

---------------------------------------------------------------------------

by lmcd at 2013-01-06T04:07:02Z

@fabpot Added tests