Is there a library function that can be used to set the default console size for a program?