Lines Matching defs:cursor

71 static VOID cursor_left(UINTN *cursor, UINTN *first) {
72 if ((*cursor) > 0)
73 (*cursor)--;
78 static VOID cursor_right(UINTN *cursor, UINTN *first, UINTN x_max, UINTN len) {
79 if ((*cursor)+1 < x_max)
80 (*cursor)++;
81 else if ((*first) + (*cursor) < len)
91 UINTN cursor;
107 cursor = 0;
128 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
147 cursor = 0;
155 cursor = len - first;
156 if (cursor+1 >= x_max) {
157 cursor = x_max-1;
166 while (line[first + cursor] && line[first + cursor] == ' ')
167 cursor_right(&cursor, &first, x_max, len);
168 while (line[first + cursor] && line[first + cursor] != ' ')
169 cursor_right(&cursor, &first, x_max, len);
170 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
177 if ((first + cursor) > 0 && line[first + cursor-1] == ' ') {
178 cursor_left(&cursor, &first);
179 while ((first + cursor) > 0 && line[first + cursor] == ' ')
180 cursor_left(&cursor, &first);
182 while ((first + cursor) > 0 && line[first + cursor-1] != ' ')
183 cursor_left(&cursor, &first);
184 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
191 if (first + cursor == len)
193 cursor_right(&cursor, &first, x_max, len);
194 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
201 cursor_left(&cursor, &first);
202 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
208 for (i = first + cursor; i < len && line[i] == ' '; i++)
213 for (i = first + cursor; i + clear < len; i++)
224 if ((first + cursor) > 0 && line[first + cursor-1] == ' ') {
225 cursor_left(&cursor, &first);
227 while ((first + cursor) > 0 && line[first + cursor] == ' ') {
228 cursor_left(&cursor, &first);
232 while ((first + cursor) > 0 && line[first + cursor-1] != ' ') {
233 cursor_left(&cursor, &first);
236 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, cursor, y_pos);
238 for (i = first + cursor; i + clear < len; i++)
249 if (first + cursor == len)
251 for (i = first + cursor; i < len; i++)
260 line[first + cursor] = '\0';
261 clear = len - (first + cursor);
262 len = first + cursor;
278 if (first == 0 && cursor == 0)
280 for (i = first + cursor-1; i < len; i++)
284 if (cursor > 0)
285 cursor--;
286 if (cursor > 0 || first == 0)
290 cursor = first;
297 cursor = 10;
299 cursor = first;
308 for (i = len; i > first + cursor; i--)
310 line[first + cursor] = KEYCHAR(key);
313 if (cursor+1 < x_max)
314 cursor++;
315 else if (first + cursor < len)