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: RESOLVED NORESPONSE    
Severity: normal CC: ludovic, 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.
Comment 1 Ludovic Henry 2018-02-28 23:55:12 UTC
Jo, is that still the case today? If so, could you please come up with a test case, and an expected vs observed behavior. Thank you.
Comment 2 Ludovic Henry 2018-04-05 19:44:23 UTC
Please reopen if you can still reproduce. Thank you