frontend: line-ed: convert all escape code usage to s_tty calls
This commit is contained in:
@@ -181,9 +181,10 @@ void arrow_up(struct line_ed *ed)
|
||||
s_tty_move_cursor_y(ed->l_tty, TTY_POS_CURSOR, ed->l_cursor_y);
|
||||
}
|
||||
|
||||
printf("\033[%zuG\033[J", prompt_length(ed, PROMPT_MAIN) + 1);
|
||||
//printf("\033[%zuG\033[J", prompt_length(ed, PROMPT_MAIN) + 1);
|
||||
s_tty_move_cursor_x(
|
||||
ed->l_tty, TTY_POS_START, prompt_length(ed, PROMPT_MAIN) + 1);
|
||||
ed->l_tty, TTY_POS_START, prompt_length(ed, PROMPT_MAIN));
|
||||
s_tty_clear(ed->l_tty, TTY_CLEAR_SCREEN | TTY_CLEAR_FROM_CURSOR);
|
||||
|
||||
save_buf_to_history(ed);
|
||||
ed->l_history_pos--;
|
||||
|
||||
Reference in New Issue
Block a user