Thread: Setting the console title

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    27

    Setting the console title

    How do you set the title of the console window?

    I have had a search but cannot find anything on it.

    Thank you.

  2. #2
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    That depends on your platform.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    27
    I am working on Windows XP (with Bloodshed Dev-C++ if that is relevant)

  4. #4
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503

  5. #5
    Fallen AndyBomstad's Avatar
    Join Date
    Jan 2005
    Posts
    52
    you could try
    Code:
    system ("title This is the title");
    but i wouldnt get in the habbit of using the "system" for anything

  6. #6
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Here's how to do it using the Windows API:
    http://www.winprog.org/tutorial/simple_window.html

  7. #7
    Registered User
    Join Date
    Mar 2005
    Posts
    27
    Thank you everyone.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extract Title from plain text file
    By Todd88 in forum C++ Programming
    Replies: 10
    Last Post: 11-21-2008, 09:47 AM
  2. Setting console title
    By tony_rusia in forum C++ Programming
    Replies: 2
    Last Post: 06-28-2007, 02:17 PM
  3. Setting Console Size
    By twomers in forum C++ Programming
    Replies: 4
    Last Post: 08-20-2006, 03:24 PM
  4. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM