• Home
  • Raw
  • Download

Lines Matching refs:cursor

213     shell->cursor = 0;  in BShellEnvHandleEnter()
249 if (shell->cursor == shell->length) { in BShellEnvHandleBackspace()
251 shell->cursor--; in BShellEnvHandleBackspace()
254 } else if (shell->cursor > 0) { in BShellEnvHandleBackspace()
255 for (short i = 0; i < shell->length - shell->cursor; i++) { in BShellEnvHandleBackspace()
256 shell->buffer[shell->cursor + i - 1] = shell->buffer[shell->cursor + i]; in BShellEnvHandleBackspace()
259 shell->cursor--; in BShellEnvHandleBackspace()
262 for (short i = shell->cursor; i < shell->length; i++) { in BShellEnvHandleBackspace()
266 for (short i = shell->length - shell->cursor + 1; i > 0; i--) { in BShellEnvHandleBackspace()
287 if (shell->length == shell->cursor) { in BShellEnvHandleNormal()
289 shell->cursor++; in BShellEnvHandleNormal()
292 for (uint16_t i = shell->length - shell->cursor; i > 0; i--) { in BShellEnvHandleNormal()
293 shell->buffer[shell->cursor + i] = shell->buffer[shell->cursor + i - 1]; in BShellEnvHandleNormal()
295 shell->buffer[shell->cursor++] = data; in BShellEnvHandleNormal()
297 for (uint16_t i = shell->cursor - 1; i < shell->length; i++) { in BShellEnvHandleNormal()
300 for (uint16_t i = shell->length - shell->cursor; i > 0; i--) { in BShellEnvHandleNormal()
308 shell->cursor = shell->length; in BShellEnvHandleNormal()
372 if (shell->cursor < shell->length) { in BShellEnvProcessInput()
373 BShellEnvOutputByte(handle, shell->buffer[shell->cursor]); in BShellEnvProcessInput()
374 shell->cursor++; in BShellEnvProcessInput()
378 if (shell->cursor > 0) { in BShellEnvProcessInput()
380 shell->cursor--; in BShellEnvProcessInput()
417 shell->cursor = 0; in BShellEnvInit()