Author Topic: Colors in the Mono Console  (Read 6654 times)

N

  • Newcomer
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Colors in the Mono Console
« on: June 23, 2012, 03:18:26 AM »
My preferred programming language at the moment is C#, but in the interests of some cross-platform compatibility I've been trying to use Mono (one of my own primary computers is a Mac, after all)... I've noticed a few things in trying to use Mono's version of System.Console- first off is the lack of a SetBufferSize function, which is a bit annoying (it works once I set it manually), but the other is colors- I've noticed some colors, especially dark grey, don't seem to show up in the console when running Mac OS X... is this something I need to worry about in my color choices in general when being cross-platform compatible, or are my own Terminal settings somehow to blame? Hopefully I'm not the only one who's seen this issue...

theloon

  • Newcomer
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Colors in the Mono Console
« Reply #1 on: June 23, 2012, 03:25:31 PM »
If you really need cross-platform uniformity then you might consider making your own "console" using graphical characters.  There are plenty of sprite sheets of ASCII characters out there.  You solve palette issues and font issues in one fell stroke.

N

  • Newcomer
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Colors in the Mono Console
« Reply #2 on: June 23, 2012, 05:53:21 PM »
I don't necessarily need uniformity (font differences are fine), I'm just curious which colors will appear at all...

It seems like it would be easier to just be careful with color combinations then going through and making a pseudoconsole, but maybe I'm wrong...

requerent

  • Rogueliker
  • ***
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Colors in the Mono Console
« Reply #3 on: June 23, 2012, 10:13:47 PM »
I recommend HaXe and NME. HaXe is a very powerful derivative of Actionscript that allows you to target native platforms (including mobile), Flash, JavaScript and others. The syntax of HaXe is ultimately very similar to C#. When compiling for other platforms, haxe actually outputs C++ or whatever language for what you are targeting- you can incorporate this into your toolchain however you want. It's pretty fantastic.