Author Topic: How to set background and font color in Windows when playing rl?  (Read 7919 times)

Hareton

  • Newcomer
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to set background and font color in Windows when playing rl?
« on: September 30, 2013, 08:58:36 AM »
I would like to set terminal colors like this guy, to be able to play ASCII roguelikes despite my eye strain: http://imgur.com/a/jkExD
Do you have any ideas how to achieve this?

Paul Jeffries

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 257
  • Karma: +1/-0
    • View Profile
    • Vitruality.com
Re: How to set background and font color in Windows when playing rl?
« Reply #1 on: October 01, 2013, 08:56:27 PM »
I've never tried this with any roguelikes, but to do this for the standard windows command prompt you can right-click on the title bar, select properties and then on that form there's a 'Colors' tab.  No idea if that will help for what you want to do, but it might be worth a try!

Ancient

  • Rogueliker
  • ***
  • Posts: 453
  • Karma: +0/-0
    • View Profile
Re: How to set background and font color in Windows when playing rl?
« Reply #2 on: October 03, 2013, 10:18:12 PM »
I saw the screenshot is from Linux terminal so here is excerpt from my .bashrc:
Code: [Select]
function normalcolors
{
if [ "$TERM" = "linux" ]; then
echo -en "\e]P0000000" #black
echo -en "\e]P8555555" #darkgrey
echo -en "\e]P1AA0000" #darkred
echo -en "\e]P9FF5555" #red
echo -en "\e]P200AA00" #darkgreen
echo -en "\e]PA55FF55" #green
echo -en "\e]P3AA5500" #brown
echo -en "\e]PBFFFF55" #yellow
echo -en "\e]P40000AA" #darkblue
echo -en "\e]PC5555FF" #blue
echo -en "\e]P5AA00AA" #darkmagenta
echo -en "\e]PDFF55FF" #magenta
echo -en "\e]P600AAAA" #darkcyan
echo -en "\e]PE55FFFF" #cyan
echo -en "\e]P7AAAAAA" #lightgrey
echo -en "\e]PFFFFFFF" #white
clear #for background artifacting
fi
}
Edit hex values for colors to suit you, invoke the function (or just put the call in startup file) and enjoy.
Michał Bieliński, reviewer for Temple of the Roguelike