int rl_code_pageup(t_rl *rl) { char *str; size_t co; co = cur_get_scrco() + 1; if (rl->dyn.ante <= co) return (rl_code_home(rl)); if (!(str = ft_strnew(co))) cur_exit(EXIT_FAILURE, "Memory allocation"); dyn_strpopante(&rl->dyn, str, co); dyn_strpushpost(&rl->dyn, str, co); free(str); if (ISIN(rl->settings, RL_ECHO)) cur_up(); return (0); }
static void adjust_row_after_column_change() { if (!goto_row(curr_y())) cur_up(); }
void term_up(int times) { cur_up(times); }