Have you looked at the man page for these functions?
http://linux.die.net/man/3/resizetermThese do not -- can not -- resize a terminal window. These resize the ncurses-internal data structures associated with the terminal.
Did you read this bit?
While these functions are intended to be used to support a signal handler (i.e., for SIGWINCH), care should be taken to avoid invoking them in a context where malloc or realloc may have been interrupted, since it uses those functions.
SIGWINCH is the signal sent to a terminal application when the window it is running in is resized. That is, the user either manually resized the window or changed the font so that contents have been resized though the bounds remain the same.
There is one escape sequence that can resize a terminal -- and that toggles between 80 column and 132 column modes and is rarely supported. It's a genuine xterm escape code -- much like the Techtronix mode is a standard xterm feature that is rarely implemented in terminals advertising themselves as "xterm".
I recommend you do what some roguelikes do: develop a tight dependency on a particular terminal emulator, and use a two-phase process where the "initial" application is just a script that passes arguments to the terminal emulator setting the window resolution, size and font and specifying that it needs to run the "real" executable instead of a shell. There may be standard command-line arguments you can use for this in the general case, but I wouldn't trust them to be universally supported by all terminal emulators. (They should be tested before they're enabled by default.)
The script can easily test for a DISPLAY to see if it can launch the terminal emulator or if it needs to make-do with an unknown lying POS terminal emulator.
I've given up on writing terminal-based games because the terminal emulators are generally crap and it's become the norm for terminal application developers to jump trough insane hoops to work-around lying terminal emulators and incomplete Terminfo data.
Ncurses should be able to know if the terminal emulator has 0, 8, 16, 88, or 256 colors. Official "xterm" terminal emulators have shipped with all of these settings as defaults in the past.
Oh, but now even though ncurses knows that "xterm" is only 16 color, if you ignore that and send xterm-256color escape codes
sometimes it will still work.
If TERM is set properly -- and the system even has the "xterm-256color" Terminfo data -- ncurses can handle all 256 colors automatically. It can even tell you when you can arbitrarily redefine the 256 colors. Awesome stuff -- but it only works if the terminal emulators and the Terminfo data is correct -- which it almost never is.
I wish you luck.