Changing the font color

GQuitugua
2009-04-09
2013-06-12
  • GQuitugua

    GQuitugua - 2009-04-09

    Sorry, as i'm not familiar with xml but I've read the posts and I've also read the Readme file and can't seem to see a specific setting for font color.  I see the <color> tag under the parent font tag but I'm assuming I'm not using the right syntax.  I'd like to change the default "shaded" white font to a bright green font.  This is what the default settings are:

       <font>
          <size>10</size>
          <bold>false</bold>
          <italic>false</italic>
          <name>Lucida Console</name>
          <!-- These values define Windows console font colors. You can tweak  -->
          <!-- them here for improved visibility (or any other purpose :-)     -->
          <colors>
             <color_00 r="0" g="0" b="0" />            <!-- Black           -->
             <color_01 r="0" g="0" b="128" />          <!-- Blue            -->
             <color_02 r="0" g="128" b="0" />          <!-- Green           -->
             <color_03 r="0" g="128" b="128" />        <!-- Cyan            -->
             <color_04 r="128" g="0" b="0" />          <!-- Red             -->
             <color_05 r="128" g="0" b="128" />        <!-- Magenta         -->
             <color_06 r="128" g="128" b="0" />        <!-- Yellow          -->
             <color_07 r="192" g="192" b="192" />      <!-- White           -->
             <color_08 r="128" g="128" b="128" />      <!-- Gray (Br.Black) -->
             <color_09 r="0" g="0" b="255" />          <!-- Br.Blue         -->
             <color_10 r="0" g="255" b="0" />          <!-- Br.Green        -->
             <color_11 r="0" g="255" b="255" />        <!-- Br.Cyan         -->
             <color_12 r="255" g="0" b="0" />          <!-- Br.Red          -->
             <color_13 r="255" g="0" b="255" />        <!-- Br.Magenta      -->
             <color_14 r="255" g="255" b="0" />        <!-- Br. Yellow      -->
             <color_15 r="255" g="255" b="255" />      <!-- Br. White       -->
          </colors>

       </font>

    As you can see, there is no <color> tag...only <colors> which, to my understanding, only redefines colors to a different shade.  I tried to set the color by adding the following but all it did was change the text to black:

       <font>
          <size>10</size>
          <bold>false</bold>
          <italic>false</italic>
          <name>Lucida Console</name>
          <color>r=0,g=255,r=0</color>
          <!-- These values define Windows console font colors. You can tweak  -->
          <!-- them here for improved visibility (or any other purpose :-)     -->
          <colors>
             <color_00 r="0" g="0" b="0" />            <!-- Black           -->
             <color_01 r="0" g="0" b="128" />          <!-- Blue            -->
             <color_02 r="0" g="128" b="0" />          <!-- Green           -->
             <color_03 r="0" g="128" b="128" />        <!-- Cyan            -->
             <color_04 r="128" g="0" b="0" />          <!-- Red             -->
             <color_05 r="128" g="0" b="128" />        <!-- Magenta         -->
             <color_06 r="128" g="128" b="0" />        <!-- Yellow          -->
             <color_07 r="192" g="192" b="192" />      <!-- White           -->
             <color_08 r="128" g="128" b="128" />      <!-- Gray (Br.Black) -->
             <color_09 r="0" g="0" b="255" />          <!-- Br.Blue         -->
             <color_10 r="0" g="255" b="0" />          <!-- Br.Green        -->
             <color_11 r="0" g="255" b="255" />        <!-- Br.Cyan         -->
             <color_12 r="255" g="0" b="0" />          <!-- Br.Red          -->
             <color_13 r="255" g="0" b="255" />        <!-- Br.Magenta      -->
             <color_14 r="255" g="255" b="0" />        <!-- Br. Yellow      -->
             <color_15 r="255" g="255" b="255" />      <!-- Br. White       -->
          </colors>

       </font>

    I was able to successfully change the cursor color to green which was pretty straight forward.  Thanks in advance.

     
    • Ellisar

      Ellisar - 2009-05-02

      From what I see, the xml shema in the console version you are using, differs from the most recent one (Console-2.00b120). If you upgrade, there is an option to pick a custom font color, disregarding the escape characters. Under settings/appearance xml subtree specify:

                      <font name="Courier New" size="10" bold="0" italic="0">
                              <color use="1" r="0" g="255" b="0"/>
                      </font>

      the color node defines a custom font color (pure green in this case).

       
  • iTomek

    iTomek - 2011-06-20

    not sure i am understanding this correctly, but to make black, i had to turn all of them to 0's. Like so:

          <colors>
             <color_00 r="0" g="0" b="0" />            <!-- Black           -->
             <color_01 r="0" g="0" b="0" />          <!-- Blue            -->
             <color_02 r="0" g="0" b="0" />          <!-- Green           -->
             <color_03 r="0" g="0" b="0" />        <!-- Cyan            -->
             <color_04 r="0" g="0" b="0" />          <!-- Red             -->
             <color_05 r="0" g="0" b="0" />        <!-- Magenta         -->
             <color_06 r="0" g="0" b="0" />        <!-- Yellow          -->
             <color_07 r="0" g="0" b="0" />      <!-- White           -->
             <color_08 r="0" g="0" b="0" />      <!-- Gray (Br.Black) -->
             <color_09 r="0" g="0" b="0" />          <!-- Br.Blue         -->
             <color_10 r="0" g="0" b="0" />          <!-- Br.Green        -->
             <color_11 r="0" g="0" b="0" />        <!-- Br.Cyan         -->
             <color_12 r="0" g="0" b="0" />          <!-- Br.Red          -->
             <color_13 r="0" g="0" b="0" />        <!-- Br.Magenta      -->
             <color_14 r="0" g="0" b="0" />        <!-- Br. Yellow      -->
             <color_15 r="0" g="0" b="0" />      <!-- Br. White       -->
          </colors>
    

    I think its a mixture of the colors.

     
  • iTomek

    iTomek - 2011-06-20

    just to add, i haven't tried playing with different variations.

     
  • Anonymous - 2011-07-06

    Hi everyone,
    after many years using an IBM command line product (TSM Administrative Console) I started looking for a tabbed solution and Console2 is just perfect.
    The only issue is with font color, why is not possible to choose a foreground color for every tab?
    I need one console for the "Administrative (interactive) Console" and one for the "Administrative (scrolling) Console" and the fastest way to understand where I am is using different colors (for background and foreground).
    Will be ver possible to have tabs with different colors for both background and foreground?

    Thanks.

     
  • Kirill

    Kirill - 2011-09-11

    iTomek, Ellisar, let me explain how color settings work. The Console colors map is used to map colors, reported by the underlying console. Hence, if you're "offended" by the tint of red, used by msbuild for errors, you can change the color - the top in the second column or in the last column - to something more tollerable.

    But it all does not matter if you specified Custom color in the Font group in the Appearance. In this case, the colors map is ignored.

    To Google Accounts holder (by the way, do you think you can fill out your name in the profile?), it should not be much of a problem. I'll see what I can do.

     
  • Kirill

    Kirill - 2011-10-21

    The unofficial 148.2 is available on http://kirill.ca
    It has per-tab colors map. Reminder: uncheck Custom color in Edit > Settings > Appearance for *any* colors map - global or tab-specific - to work.

     

Log in to post a comment.