#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    17
    Rep Power
    0

    Changing font size and colour


    I would like to know how I change the colour of font and the size. The simple code below would be nice to see displayed on a white background and the text red and bigger. Is this possible in the command prompt window and if so how



    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    #include<stdio.h>

    int main()
    {
    printf("\n");
    printf("------------\n");
    printf("HELLO WORLD\n");
    printf("------------\n");
    printf("\n");

    return (0);
    }
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,242
    Rep Power
    2222
    Character-mode application API: http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    Some will recommend conio, which in MinGW gcc is partially implemented using ... charcter-mode application API.
  4. #3
  5. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,413
    Rep Power
    1871
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0
    @piczim, Have you got the solution for this issue?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    17
    Rep Power
    0

    Font size


    Originally Posted by surendrapmishra
    @piczim, Have you got the solution for this issue?
    Hi I have had lots of help on the colour BUT nothing on the font size

    Many thanks

    Rod

IMN logo majestic logo threadwatch logo seochat tools logo