But I uses cmd.exe with 500 liens buffer, So scrollbar is always displayed. Then, I hope to fit window to visible rectangle.
For example, vim.exe is doing that.
Vim
Godit
SetConsoleWindowInfo can do it. Or CreateConsoleScreenBuffer create alternate window that fit the rectangle.
godit is so sweet. I tried this on windows.
But I uses cmd.exe with 500 liens buffer, So scrollbar is always displayed. Then, I hope to fit window to visible rectangle. For example, vim.exe is doing that.
Vim
Godit
SetConsoleWindowInfo
can do it. Or CreateConsoleScreenBuffer create alternate window that fit the rectangle.