You can use something like that - in windows:
As far as i know, you don't need to include a library.
Code:void main() { SMALL_RECT windowSize = {0 , 0 , 77 , 47} //change the values SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE), TRUE, &windowSize) }