Lines Matching refs:delta
11 void z_shell_op_cursor_vert_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_vert_move() argument
13 char dir = delta > 0 ? 'A' : 'B'; in z_shell_op_cursor_vert_move()
15 if (delta == 0) { in z_shell_op_cursor_vert_move()
19 if (delta < 0) { in z_shell_op_cursor_vert_move()
20 delta = -delta; in z_shell_op_cursor_vert_move()
23 Z_SHELL_VT100_CMD(sh, "\e[%d%c", delta, dir); in z_shell_op_cursor_vert_move()
26 void z_shell_op_cursor_horiz_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_horiz_move() argument
28 char dir = delta > 0 ? 'C' : 'D'; in z_shell_op_cursor_horiz_move()
30 if (delta == 0) { in z_shell_op_cursor_horiz_move()
34 if (delta < 0) { in z_shell_op_cursor_horiz_move()
35 delta = -delta; in z_shell_op_cursor_horiz_move()
38 Z_SHELL_VT100_CMD(sh, "\e[%d%c", delta, dir); in z_shell_op_cursor_horiz_move()