Lines Matching refs:INPUT

875 	    memset(&INPUT[hdt_cli.cursor_pos], 0,  in start_cli_mode()
876 strlen(INPUT) - hdt_cli.cursor_pos); in start_cli_mode()
892 if (hdt_cli.cursor_pos < (int)strlen(INPUT)) { in start_cli_mode()
902 if ((strlen(INPUT) - hdt_cli.cursor_pos) > 0) { in start_cli_mode()
904 move_cursor_right(strlen(INPUT) - hdt_cli.cursor_pos); in start_cli_mode()
905 hdt_cli.cursor_pos = strlen(INPUT); in start_cli_mode()
940 memset(INPUT, 0, sizeof(INPUT)); in start_cli_mode()
941 strlcpy(INPUT, hdt_cli.history[future_history_pos], sizeof(INPUT)); in start_cli_mode()
950 printf("%s", INPUT); in start_cli_mode()
951 hdt_cli.cursor_pos = strlen(INPUT); in start_cli_mode()
981 memset(INPUT, 0, sizeof(INPUT)); in start_cli_mode()
982 strlcpy(INPUT, hdt_cli.history[future_history_pos], sizeof(INPUT)); in start_cli_mode()
991 printf("%s", INPUT); in start_cli_mode()
992 hdt_cli.cursor_pos = strlen(INPUT); in start_cli_mode()
1002 strlcpy(INPUT, in start_cli_mode()
1004 sizeof(INPUT)); in start_cli_mode()
1005 hdt_cli.cursor_pos = strlen(INPUT); in start_cli_mode()
1013 autocomplete(skip_spaces(INPUT)); in start_cli_mode()
1016 printf("%s%s", hdt_cli.prompt, INPUT); in start_cli_mode()
1022 if (strlen(remove_spaces(INPUT)) < 1) { in start_cli_mode()
1026 exec_command(remove_spaces(INPUT), hardware); in start_cli_mode()
1037 if (strlen(INPUT) > 0) { in start_cli_mode()
1039 memset(&INPUT,0,sizeof(INPUT)); in start_cli_mode()
1051 if (strlen(INPUT) == 0) in start_cli_mode()
1054 if (hdt_cli.cursor_pos >= strlen(INPUT)) in start_cli_mode()
1057 for (int c = hdt_cli.cursor_pos; c < (int)strlen(INPUT) - 1; c++) in start_cli_mode()
1058 INPUT[c] = INPUT[c + 1]; in start_cli_mode()
1059 INPUT[strlen(INPUT) - 1] = '\0'; in start_cli_mode()
1065 printf("%s", INPUT + hdt_cli.cursor_pos); in start_cli_mode()
1068 if (strlen(INPUT + hdt_cli.cursor_pos) > 0) in start_cli_mode()
1069 move_cursor_left(strlen(INPUT + hdt_cli.cursor_pos)); in start_cli_mode()
1079 c < (int)strlen(INPUT) - 1; c++) in start_cli_mode()
1080 INPUT[c] = INPUT[c + 1]; in start_cli_mode()
1081 INPUT[strlen(INPUT) - 1] = '\0'; in start_cli_mode()
1090 printf("%s", INPUT + hdt_cli.cursor_pos - 1); in start_cli_mode()
1112 if (hdt_cli.cursor_pos < (int)strlen(INPUT)) { in start_cli_mode()
1114 int trailing_chars = strlen(INPUT) - hdt_cli.cursor_pos; in start_cli_mode()
1116 strlcpy(temp_command, INPUT, hdt_cli.cursor_pos); in start_cli_mode()
1120 INPUT + hdt_cli.cursor_pos, trailing_chars); in start_cli_mode()
1121 memset(INPUT, 0, sizeof(INPUT)); in start_cli_mode()
1122 snprintf(INPUT, sizeof(INPUT), "%s", temp_command); in start_cli_mode()
1128 printf("%s", INPUT + hdt_cli.cursor_pos); in start_cli_mode()
1135 INPUT[hdt_cli.cursor_pos] = current_key; in start_cli_mode()