read:
#if RL_READLINE_VERSION >= 0x0600
- if (syntax) {
- rl_prep_term_function = CYDisplayStart;
+ if (syntax)
rl_redisplay_function = CYDisplayUpdate;
- rl_deprep_term_function = CYDisplayFinish;
- } else {
- rl_prep_term_function = rl_prep_terminal;
+ else
rl_redisplay_function = rl_redisplay;
- rl_deprep_term_function = rl_deprep_terminal;
- }
#endif
mode_ = Parsing;
current_ = target;
}
-void CYDisplayStart(int meta) {
- rl_prep_terminal(meta);
- current_ = CYCursor();
-}
-
void CYDisplayUpdate() {
rl_display_fixed = 1;
rl_redisplay();
point_ = rl_point;
}
-void CYDisplayFinish() {
- rl_deprep_terminal();
-}
-
#endif
#ifndef CYCRIPT_DISPLAY_HPP
#define CYCRIPT_DISPLAY_HPP
-void CYDisplayStart(int meta);
void CYDisplayUpdate();
-void CYDisplayFinish();
#endif/*CYCRIPT_DISPLAY_HPP*/