More Console Window Questions

This is a discussion on More Console Window Questions within the C++ Programming forums, part of the General Programming Boards category; Hi, Thanks to everyone who helped me with my other question I now have it working fine. Just two other ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    More Console Window Questions

    Hi,

    Thanks to everyone who helped me with my other question I now have it working fine.

    Just two other questions though.

    1. What's the quickest, easiest way to copy the contents of one console buffer to another?

    2. Can you set the font in the console window?

    Thanks again for you help

    Richard

    :-)

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >What's the quickest, easiest way to copy the contents of one console buffer to another?
    I may be misunderstanding your question, but
    strncpy( dst, src, BUFSIZ );
    for strings and
    memcpy( dst, src, BUFSIZ );
    for anything not ending with '\0'

    >Can you set the font in the console window?
    No

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    Trying to be a bit more clear

    Hi Prelude,

    I think you misunderstand, what I have is 2 console screen buffers and what I want to do is put things on the hidden buffer screen and then copy the whole lot in one go to the visible buffer screen. So what I wanted to know is is there a way to do this and if so whats the quickest and easiest?

    hope that makes it a bit clearer

    Richard
    :-)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01:39 PM
  2. Output to console window...
    By alvifarooq in forum C++ Programming
    Replies: 2
    Last Post: 10-26-2004, 08:56 PM
  3. Problem with creating new window, from another window
    By Garfield in forum Windows Programming
    Replies: 6
    Last Post: 01-11-2004, 01:10 PM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21