How to change console resolution to 640x480 when application start in ubuntu using C?Is that possible with ncurses library?
How to change console resolution to 640x480 when application start in ubuntu using C?Is that possible with ncurses library?
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.
take a look at 'xrandr' command which you could issue from C using 'system'.