this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove more debug info

alice 94d65d47 636453b0

+3 -28
+3 -28
src/studio/screens/console.c
··· 371 371 static void scrollConsole(Console* console) 372 372 { 373 373 printf("scrollConsole start\n"); 374 - printf("Checking if console pointer is NULL...\n"); 375 374 // Check for NULL pointer 376 375 if (console == NULL) 377 376 { 378 377 printf("Error: console is NULL in scrollConsole\n"); 379 378 return; 380 379 } 381 - printf("Console pointer is not NULL, proceeding...\n"); 382 380 printf("starting out with console->cursor.pos.y: %d\n", console->cursor.pos.y); 383 381 while(console->cursor.pos.y >= CONSOLE_BUFFER_HEIGHT * CONSOLE_BUFFER_SCREENS) 384 382 { 385 - printf("in scrollConsole\'s while loop!!!\n"); 386 383 // Check for valid pointers before calling scrollBuffer 387 384 if (console->text == NULL) 388 385 { ··· 402 399 403 400 console->cursor.pos.y--; 404 401 } 405 - printf("scrollConsole while loop done!\n"); 406 402 407 403 size_t inputLines = (console->cursor.pos.x + console->input.pos) / CONSOLE_BUFFER_WIDTH; 408 404 s32 minScroll = console->cursor.pos.y + inputLines - CONSOLE_BUFFER_HEIGHT + 1; ··· 461 457 462 458 static void consolePrintOffset(Console* console, const char* text, u8 color, s32 wrapLineOffset) 463 459 { 464 - #ifndef BAREMETALPI 465 - printf("Debug: Entering consolePrintOffset\n"); 466 - printf("Initial text: %s\n", text); 467 - #endif 468 - 469 460 console->cursor.pos = cursorPos(console); 470 461 printf("Cursor position: x=%d, y=%d\n", console->cursor.pos.x, console->cursor.pos.y); 471 462 ··· 510 501 printf("console->input.text is now: %s\n", console->input.text); 511 502 console->input.pos = 0; 512 503 printf("Updated input text position\n"); 513 - 514 - #ifndef BAREMETALPI 515 - printf("Debug: Exiting consolePrintOffset\n"); 516 - #endif 517 504 } 518 505 519 506 static void consolePrint(Console* console, const char* text, u8 color) ··· 1316 1303 } 1317 1304 1318 1305 // The option matches the incomplete word, add it to the list. 1306 + printf("Buffer size before adding option: %zu\n", strlen(data->options)); 1307 + printf("Adding option: %s\n", option); 1319 1308 strncat(data->options, option, CONSOLE_BUFFER_SCREEN); 1320 1309 strncat(data->options, " ", CONSOLE_BUFFER_SCREEN); 1310 + printf("Buffer size after adding option: %zu\n", strlen(data->options)); 1321 1311 } 1322 1312 } 1323 1313 ··· 1356 1346 1357 1347 if (strlen(data->commonPrefix) == strlen(data->incompleteWord) && !justOneOptionLeft) 1358 1348 { 1359 - printf("in if(strlen(data->commonPrefix) == strlen(data->incompleteWord) && !justOneOptionLeft)\n"); 1360 - printf("calling provideHint\n"); 1361 1349 provideHint(data->console, data->options); 1362 - printf("finished provideHint\n"); 1363 1350 } 1364 - printf("calling processConsoleEnd\n"); 1365 1351 processConsoleEnd(data->console); 1366 - printf("finished processConsoleEnd\n"); 1367 - printf("inserting input text\n"); 1368 1352 insertInputText(data->console, data->commonPrefix+strlen(data->incompleteWord)); 1369 - printf("finished inserting input text\n"); 1370 1353 if (justOneOptionLeft) 1371 1354 { 1372 - printf("in if(justOneOptionLeft)\n"); 1373 - printf("adding one space to input\n"); 1374 1355 insertInputText(data->console, " "); 1375 1356 } 1376 1357 } ··· 1471 1452 return; 1472 1453 } 1473 1454 1474 - printf("Entering tabCompleteFiles\n"); 1475 1455 tic_fs_enum(data->console->fs, addFilenameToTabComplete, finishTabCompleteAndFreeData, MOVE(*data)); 1476 - printf("Exiting tabCompleteFiles\n"); 1477 1456 } 1478 1457 1479 1458 static void tabCompleteDirs(TabCompleteData* data) ··· 1483 1462 return; 1484 1463 } 1485 1464 1486 - printf("Entering tabCompleteDirs\n"); 1487 1465 tic_fs_enum(data->console->fs, addDirToTabComplete, finishTabCompleteAndFreeData, MOVE(*data)); 1488 - printf("Exiting tabCompleteDirs\n"); 1489 1466 } 1490 1467 1491 1468 static void tabCompleteFilesAndDirs(TabCompleteData* data) ··· 1495 1472 return; 1496 1473 } 1497 1474 1498 - printf("Entering tabCompleteFilesAndDirs\n"); 1499 1475 tic_fs_enum(data->console->fs, addFileAndDirToTabComplete, finishTabCompleteAndFreeData, MOVE(*data)); 1500 - printf("Exiting tabCompleteFilesAndDirs\n"); 1501 1476 } 1502 1477 1503 1478 static void tabCompleteConfig(TabCompleteData* data)