feat: add integration test framework and rack/grid command support
This commit is contained in:
committed by
Loic Coenen (aider)
parent
9fda1b2669
commit
e6e0a47749
@@ -235,6 +235,19 @@ void tui_run(void) {
|
||||
colon_buf[colon_len] = '\0';
|
||||
colon_len = 0;
|
||||
in_colon = false;
|
||||
// Check first token before calling handle_client_command
|
||||
char cmd_copy[256];
|
||||
strncpy(cmd_copy, colon_buf, sizeof(cmd_copy)-1);
|
||||
cmd_copy[sizeof(cmd_copy)-1] = '\0';
|
||||
char *first = strtok(cmd_copy, " ");
|
||||
if (first) {
|
||||
if (strcmp(first, "rack") == 0) {
|
||||
rack_mode = true;
|
||||
rack_selected = 0;
|
||||
} else if (strcmp(first, "grid") == 0) {
|
||||
rack_mode = false;
|
||||
}
|
||||
}
|
||||
int dummy_id;
|
||||
handle_client_command(colon_buf, &dummy_id);
|
||||
draw_grid();
|
||||
|
||||
Reference in New Issue
Block a user