From 8a81192b83961beebb4698b63e122e754ef40ada Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 11 Jan 2014 19:59:50 -0800 Subject: [PATCH] CYDisplay{Start,Finish} obsolete by rl_redisplay. --- Console.cpp | 9 ++------- Display.cpp | 9 --------- Display.hpp | 2 -- 3 files changed, 2 insertions(+), 18 deletions(-) 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*/ -- 2.45.2