From: Jay Freeman (saurik) Date: Sun, 12 Jan 2014 03:59:50 +0000 (-0800) Subject: CYDisplay{Start,Finish} obsolete by rl_redisplay. X-Git-Tag: v0.9.500~73 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/8a81192b83961beebb4698b63e122e754ef40ada CYDisplay{Start,Finish} obsolete by rl_redisplay. --- diff --git a/Console.cpp b/Console.cpp index 8a525f6..43f18b3 100644 --- a/Console.cpp +++ b/Console.cpp @@ -469,15 +469,10 @@ static void Console(CYOptions &options) { 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; diff --git a/Display.cpp b/Display.cpp index 23b2e08..bd646bb 100644 --- a/Display.cpp +++ b/Display.cpp @@ -116,11 +116,6 @@ void CYDisplayMove(CYCursor target) { current_ = target; } -void CYDisplayStart(int meta) { - rl_prep_terminal(meta); - current_ = CYCursor(); -} - void CYDisplayUpdate() { rl_display_fixed = 1; rl_redisplay(); @@ -164,8 +159,4 @@ void CYDisplayUpdate() { point_ = rl_point; } -void CYDisplayFinish() { - rl_deprep_terminal(); -} - #endif diff --git a/Display.hpp b/Display.hpp index fc86c05..598e507 100644 --- a/Display.hpp +++ b/Display.hpp @@ -22,8 +22,6 @@ #ifndef CYCRIPT_DISPLAY_HPP #define CYCRIPT_DISPLAY_HPP -void CYDisplayStart(int meta); void CYDisplayUpdate(); -void CYDisplayFinish(); #endif/*CYCRIPT_DISPLAY_HPP*/