title: Is there a way to find the current terminal colours in a script?
body: <p>I have a set of ruby scripts that uses the Rainbow gem for setting coloured output.</p>
  
  <p>The main issue that I have come across is the colours don't necessarily look good depending on what style of Terminal the user has set up (for example, I use a light background, and the colours look great on mine, however one of the coloured output are completely unreadable on a dark grey background).</p>
  
  <p>One idea I had was to detect if the current terminal is a light/dark setup, and have a configuration for each one.</p>
  
  <p>Has anyone come across this issue before, and if so - how did they work around it?</p>