1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A WIERDO problem...

Discussion in 'Support' started by fishman@panix.com, May 18, 2015.

  1. fishman@panix.com

    Joined:
    Feb 21, 2009
    Messages:
    83
    Likes Received:
    0
    I generally like to run with three instantiations of TCC open on my desktop. If I create a batch file to open them

    start /separate /max c:\4nt2\tcc.exe
    start /separate /max c:\4nt2\tcc.exe
    start /separate /max c:\4nt2\tcc.exe

    and call it from a command line it runs fine. The three instantiations come up with medium white text on a black background as I expect. BUT if I take that batch file and create a shortcut to it on the desktop, when I call them that way the three instantiations come up with bright yellow text on a black background. What is going on?????

    Oh, I get the same effect if I call the batch file by double clicking on it in its directory. Thanks for any enlightenment.

    Harvey
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Try this:

    Add a PAUSE to the end of your batch file, then double-click on it to open it from Explorer. Then click on the console window's control menu, choose "Properties" and then select the Colors tab. Select the "Screen Text" radio button and check that the default is really white. If not, you can change it and hit OK, then remove the PAUSE from the end of the batch file....
     
  3. fishman@panix.com

    Joined:
    Feb 21, 2009
    Messages:
    83
    Likes Received:
    0
    Thanks, but no joy ;-( Pause does not help and the screen color is 192,192,192 as it should be for medium white. Screen background is 0, 0, 0 as it should be for black. Pop-up text is 128, 0, 128 for light magenta and pop-up background is 255, 255, 255 for white. The offending text looks like 255. 255, 0 for bright yellow.
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Wait, are you saying that the batch file itself comes up with the wrong colors, or that the three new consoles it launches have the wrong colors?

    Do you get the wrong colors if you launch c:\4nt2\tcc.exe from the Start/Run menu?
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    There are several different ways to specify colors in TCC.

    1) You can define input, output, and error colors in the OPTION dialog (OPTION / Windows).
    2) You can use ANSI colors (OPTION / Windows).
    3) You can set the default colors with CLS in your TCMD.INI.
    4) You can define a custom palette (OPTION / Windows / Console Palette).
    5) You can use the default colors defined for TCC (conhost).
    6) You can use the default colors for console apps (conhost).
    7) You can use the default white on black for anything that doesn't fall under 1-6 above.

    You have a mismatch somewhere; without more details about your configuration it's impossible to guess where.
     
  6. fishman@panix.com

    Joined:
    Feb 21, 2009
    Messages:
    83
    Likes Received:
    0
    The batch file runs fine; it is the consoles that come up yellow.

    But I found something really interesting; it seems to be the act of starting by double-clicking from a directory that makes things come up yellow. If I do anything from a command line, it comes up white as it should. But ANYTHING from a double click, even tcc.exe, comes up yellow (except the batch file itself). I define colors only in the Windows command line properties dialogs. I have set nothing in the TC OPTION dialog boxes.
     
  7. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    What's specified here: HKEY_CURRENT_USER\Console for "Screen Colors"? What colors does CMD use when started via StartButton\Run?
     
  8. fishman@panix.com

    Joined:
    Feb 21, 2009
    Messages:
    83
    Likes Received:
    0
    It is 0x00000007, which I believe is low intensity white.
     
  9. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    Yes, 0x0000007 is what you said you want. Then I suspect that there's a shortcut/link (...) somewhere with the yellow foreground. What about the subkeys of HKCR\Console? I think yellow on black would be 0x000000e. What about TCMD.INI (TCC/4NT section, StdColors)?
     
  10. fishman@panix.com

    Joined:
    Feb 21, 2009
    Messages:
    83
    Likes Received:
    0
    I installed TakeCommand 18 and the problem seems to be gone. I am not that sure that I like the ghost of TakeCommand itself flashing in the background as it installs the four instantiations of TCC but I can live with that.
     

Share This Page