// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if !MOBILE
using System.Runtime.InteropServices;
using System.Text;
namespace System {
- class NullConsoleDriver : IConsoleDriver {
+ class NullConsoleDriver : IConsoleDriver
+ {
+ static readonly ConsoleKeyInfo EmptyConsoleKeyInfo = new ConsoleKeyInfo ('\0', 0, false, false, false);
+
public ConsoleColor BackgroundColor {
get { return ConsoleColor.Black; }
set {
set {}
}
- public bool Echo { // not really used on windows
- get { return true; }
- set {}
- }
-
public ConsoleColor ForegroundColor {
get { return ConsoleColor.Black; }
set {}
public ConsoleKeyInfo ReadKey (bool intercept)
{
- return ConsoleKeyInfo.Empty;
+ return EmptyConsoleKeyInfo;
}
public void ResetColor ()