#1
  1. Happy Monkey
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Location
    UK (University of Kentucky)
    Posts
    1,809
    Rep Power
    47

    Changing font size/color?


    Is there a way to change the font size/color in a command line script?
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    Not sure what you are asking. Are you at a DOS prompt and you want to change the look and feel? If you are using a shell in Linux, some shells provide support for colors. How to change that is, I believe, heavily OS and terminal emulator specific. Root around here, I recall seeing some traffic about it earlier.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. Happy Monkey
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Location
    UK (University of Kentucky)
    Posts
    1,809
    Rep Power
    47
    I would like to do this in both environments. I am doing some research about this... I will post if it is not in vein.
  6. #4
  7. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,172
    Rep Power
    2222
    ncurses will do the job for you in Linux, but only with text attributes like color and bold. It cannot do it for text size that I know of -- I would think that would require a GUI.

    For the "DOS window", more properly called the "console", there's the Console API. Search for that in Microsoft's MSDN area at http://msdn.microsoft.com/ . The console functions are listed at http://msdn.microsoft.com/library/de..._functions.asp .
  8. #5
  9. Happy Monkey
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Location
    UK (University of Kentucky)
    Posts
    1,809
    Rep Power
    47
    Thanks! I will defiantly check that out.

IMN logo majestic logo threadwatch logo seochat tools logo