Code cleanup and documentation

This commit is contained in:
2025-10-18 21:35:01 +02:00
parent 6b0e858064
commit e124e3071e
17 changed files with 105 additions and 95 deletions

View File

@@ -1,6 +1,7 @@
//
// Created by snapshot112 on 10/17/25.
//
/*
* Created by snapshot112 on 10/17/2025
*/
#include "manual.h"
@@ -26,7 +27,7 @@ void manual(const coordinate display_location) {
// Wait until ESCAPE or BACKSPACE is pressed.
timeout(200);
for (int ch = getch(); ch != KEY_ESCAPE && ch != KEY_BACKSPACE && ch != ' '; ch = getch()) {
for (int ch = getch(); ch != KEY_ESCAPE && ch != KEY_BACKSPACE; ch = getch()) {
// Update the screen in the meantime to accommodate windows resizes.
show_grid_on_offset(grid, display_location.x, display_location.y);
}