Thread: Console Size

  1. #1
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902

    Question Console Size

    I'm trying to resize the console window to a size of 19x15.
    Code:
      const SMALL_RECT sm = {1, 1, 18, 14};
      SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE), TRUE, &sm);
      SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), (COORD) {19, 15});
    That works... but the font size is TEENY TINY! It's on the lowest setting... something like 2x4...

    So, can someone explain what is wrong, and why the font size is microscopic? Thanks.

    (C / Windows 98 / Dev-C++)
    Last edited by Cactus_Hugger; 10-13-2003 at 05:03 PM.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Error with a vector
    By Tropicalia in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2006, 07:45 PM
  3. Problems with a simple console game
    By DZeek in forum C++ Programming
    Replies: 9
    Last Post: 03-06-2005, 02:02 PM
  4. char problem
    By eXistenZ in forum Windows Programming
    Replies: 36
    Last Post: 02-21-2005, 06:32 AM
  5. Replies: 11
    Last Post: 03-25-2003, 05:13 PM