ravendb/ravendb — pull request #489 by jasondentler (2012-08-12 11:37:42+00:00)
Title: Only clear console when stdin / stdout are not redirected

Fixes "Handle is invalid" when calling Console.Clear while stdin / stdout are redirected.

*Relies on call to Kernel32. This won't make the Mono crowd happy. Sorry.*