Thread: changing font size and colour

  1. #16
    Registered User
    Join Date
    Jun 2013
    Posts
    66
    You are using gcc on Windows, is that through MinGW or Cygwin?

  2. #17
    Registered User
    Join Date
    Jun 2013
    Posts
    26
    I am using gcc in the cmd promt in windows I use the Vim 7.3 as my text editor. I am learning from the book C for Dummies by Dan Gookin second edition. In appendix 1 it tells you how to set up your directory, suggests the text editor and shows how to use the command prompt. so that's what I have been doing. However most of the advice I have got never refers to using the command prompt so that's why I was asking

  3. #18
    Registered User
    Join Date
    Jun 2013
    Posts
    66
    I am using gcc in the cmd promt in windows I use the Vim 7.3 as my text editor.
    Where did you get gcc and how did you install it? The two usual suspects are through MinGW or Cygwin.

  4. #19
    Registered User
    Join Date
    Jun 2013
    Posts
    26
    For this book, I used the MinGW compiler, which comes with the Dev-C++

    IDE (Integrated Development Environment). It’s free and available from

    www.bloodshed.net. So I do use the MinGw compiler I just checked the book and that is the extract I cut and pasted Shall I carry on?

  5. #20
    Registered User
    Join Date
    Jun 2013
    Posts
    66
    Try this command to build your program:
    Code:
    gcc code.c -o -lkernel32

  6. #21
    Registered User
    Join Date
    Jun 2013
    Posts
    26
    Thank you very much it has built my original code, will this now enable me to be able to change font size

  7. #22
    Registered User
    Join Date
    Jun 2013
    Posts
    66
    Quote Originally Posted by piczim View Post
    Thank you very much it has built my original code, will this now enable me to be able to change font size
    Try running the code and see. But do note that the Windows console does not support rich text. Changing the font size is an all or nothing effect with the program I posted, and will continue to be until you move away from the console.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. changing font size in C++
    By Mukul Kumar in forum C++ Programming
    Replies: 1
    Last Post: 05-19-2013, 10:47 AM
  2. Changing the font size in dev c++
    By Sabra khan in forum Tech Board
    Replies: 3
    Last Post: 06-01-2012, 09:17 AM
  3. changing font size
    By f6ff in forum C++ Programming
    Replies: 2
    Last Post: 06-12-2006, 03:41 AM
  4. changing font size
    By rajesh23 in forum Linux Programming
    Replies: 2
    Last Post: 03-03-2005, 04:51 PM
  5. Changing Font colour for C++
    By dutch's finest in forum C++ Programming
    Replies: 3
    Last Post: 11-28-2004, 08:11 AM