]> git.saurik.com Git - cycript.git/commitdiff
CYDisplay{Start,Finish} obsolete by rl_redisplay.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 03:59:50 +0000 (19:59 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 04:01:12 +0000 (20:01 -0800)
Console.cpp
Display.cpp
Display.hpp

index 8a525f69b5fc976b4a64a550f0b86ef16ba1d769..43f18b37cfff042bf0b4b3fadfa88599b498904a 100644 (file)
@@ -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;
index 23b2e089118faefdac9b38f1ca5218c2af999863..bd646bbd2f856294f3c1b4e7d626440750e5471c 100644 (file)
@@ -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
index fc86c0569593f21adfaca89887c4ac83b021e4b9..598e507957758571846d5dc5447899d13e46e9de 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef CYCRIPT_DISPLAY_HPP
 #define CYCRIPT_DISPLAY_HPP
 
-void CYDisplayStart(int meta);
 void CYDisplayUpdate();
-void CYDisplayFinish();
 
 #endif/*CYCRIPT_DISPLAY_HPP*/