Bug 27726

Summary: UNIX Console semantics not available on Win32 in Cygwin
Product: [Mono] Runtime Reporter: Jo Shields <jo.shields>
Component: io-layerAssignee: Bugzilla <bugzilla>
Status: NEW ---    
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:
Bug Depends on:    
Bug Blocks: 27597    

Description Jo Shields 2015-03-06 06:06:58 UTC
Mono has a UNIX console driver, and a Win32 console driver. It's selected at compile time, so on a Windows build, only the Win32 console driver is available.

Several methods in System.Console return bad values if executing in Cygwin (which has a "real" UNIX console, with a tty and everything, not a Win32 console). For example, Console.WindowWidth returns 0, which prevents csharp REPL from running in Mono in Cygwin.