Thread: Resize console window

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    9

    Resize console window

    How to change console resolution to 640x480 when application start in ubuntu using C?Is that possible with ncurses library?

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    1,012
    No.

    If you're talking about the Linux console, it's maybe possible. If a framebuffer is in use, you can make use of that (I'm sure Google will help you find many links on how to program for the framebuffer).

    There's no guarantee of a framebuffer, so that won't necessarily work. You could try programming for SVGALib, but that's ancient, and it's not guaranteed to exist, either.

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    546
    take a look at 'xrandr' command which you could issue from C using 'system'.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Uniform resize of a window
    By Mastadex in forum Windows Programming
    Replies: 5
    Last Post: 02-13-2008, 02:40 PM
  2. Window Resize question (MFC)
    By IfYouSaySo in forum Windows Programming
    Replies: 2
    Last Post: 11-16-2005, 12:34 PM
  3. Not updating window until I resize it!
    By Bajanine in forum Windows Programming
    Replies: 5
    Last Post: 05-16-2004, 12:59 AM
  4. Disable Resize Window :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-07-2002, 07:26 PM
  5. Resize the window
    By Garfield in forum Windows Programming
    Replies: 13
    Last Post: 12-11-2001, 08:51 PM