Major step in the new AVR interface to send commands. It compiles, but is untested. The old code and function remains active.

This commit is contained in:
2026-01-28 17:18:59 -06:00
parent e2829f648d
commit a83bc28a8d
5 changed files with 534 additions and 63 deletions

View File

@@ -35,16 +35,6 @@ void Console_Init(short Width, short Height, short bottomScrollHeight) {
newSize.X = consoleWidth; // columns
newSize.Y = consoleHeight; // rows
// Step 1: Shrink window if needed before shrinking buffer
SMALL_RECT tempWindow = csbi.srWindow;
tempWindow.Right = tempWindow.Left + (newSize.X - 1);
tempWindow.Bottom = tempWindow.Top + (newSize.Y - 1);
if (!SetConsoleWindowInfo(hStdout, TRUE, &tempWindow)) {
fprintf(stderr, "Error: Unable to temporarily resize window. Code: %lu\n", GetLastError());
exit(1);
}
// Step 2: Set new buffer size
if (!SetConsoleScreenBufferSize(hStdout, newSize)) {
fprintf(stderr, "Error: Unable to set console buffer size. Code: %lu\n", GetLastError());