Lines Matching refs:cursor_position
370 int cursor_position = strlen(init); in dialog_inputbox() local
422 cursor_form_win = min(cursor_position, prompt_width-1); in dialog_inputbox()
424 result + cursor_position-cursor_form_win); in dialog_inputbox()
445 if (cursor_position > 0) { in dialog_inputbox()
446 memmove(&result[cursor_position-1], in dialog_inputbox()
447 &result[cursor_position], in dialog_inputbox()
448 len-cursor_position+1); in dialog_inputbox()
449 cursor_position--; in dialog_inputbox()
455 if (cursor_position >= 0 && cursor_position < len) { in dialog_inputbox()
456 memmove(&result[cursor_position], in dialog_inputbox()
457 &result[cursor_position+1], in dialog_inputbox()
458 len-cursor_position+1); in dialog_inputbox()
464 if (cursor_position < len) { in dialog_inputbox()
465 cursor_position++; in dialog_inputbox()
471 if (cursor_position > 0) { in dialog_inputbox()
472 cursor_position--; in dialog_inputbox()
477 cursor_position = 0; in dialog_inputbox()
481 cursor_position = len; in dialog_inputbox()
482 cursor_form_win = min(cursor_position, prompt_width-1); in dialog_inputbox()
493 memmove(&result[cursor_position+1], in dialog_inputbox()
494 &result[cursor_position], in dialog_inputbox()
495 len-cursor_position+1); in dialog_inputbox()
496 result[cursor_position] = res; in dialog_inputbox()
497 cursor_position++; in dialog_inputbox()
514 result + cursor_position-cursor_form_win); in dialog_inputbox()