Resize console window

This is a discussion on Resize console window within the C Programming forums, part of the General Programming Boards category; How to change console resolution to 640x480 when application start in ubuntu using C?Is that possible with ncurses library?...

  1. #1
    4c0
    4c0 is offline
    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
    cas
    cas is offline
    Registered User
    Join Date
    Sep 2007
    Posts
    975
    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, 01:40 PM
  2. Window Resize question (MFC)
    By IfYouSaySo in forum Windows Programming
    Replies: 2
    Last Post: 11-16-2005, 11:34 AM
  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, 07:51 PM

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