There's a function for changing the size of a console window:
Though it doesn't seem to automatically maximize the window, giving you a window the same physical size but with scrollbars, so you'd have to manually maximize it (I can't see a simple way to do so via the console API).Code:#define WIN32 #include <windows.h> int main() { COORD x; x.X = 132; x.Y = 43; SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), x); return 0; }
Edit: It looks like the Y size should include however much scrollback you want, too.


Reply With Quote