[Mono-bugs] [Bug 671579] New: Value returned from Console.ForegroundColor is not actual console foreground color

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 13 14:42:41 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=671579

https://bugzilla.novell.com/show_bug.cgi?id=671579#c0


           Summary: Value returned from Console.ForegroundColor is not
                    actual console foreground color
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: s_lessard at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=413726)
 --> (http://bugzilla.novell.com/attachment.cgi?id=413726)
Screenshot of csharp repl output in the console

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us)
AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

If I have my system's console configured to use red as the foreground color and
blue as the background color System.Console.WriteLine("Foo") will write "Foo"
in red text on a blue background, but System.Console.ForegroundColor will
return ConsoleColor.White and System.Console.BackgroundColor will return
ConsoleColor.Black.

Reproducible: Always

Steps to Reproduce:
1. Configure your console (Terminal.app on OS X) to use red for text color and
blue for the background color. (Any colors other than white and black
respectively will suffice.)
2. Run csharp repl
3. Run this statement in csharp repl:  Console.WriteLine("Foreground: {0},
Background: {1}", Console.ForegroundColor, Console.BackgroundColor);

Actual Results:  
csharp repl outputs "Foreground: White, Background: Black" in red text on a
blue background.


Expected Results:  
csharp repl outputs "Foreground: Red, Background: Blue" in red text on a blue
background.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list