[tor-commits] [nyx/master] Drop refresh from draw loop

atagar at torproject.org atagar at torproject.org
Sun Jul 16 03:28:15 UTC 2017


commit 7642b1e18fa7dd78f22a8203260e04cfd6791f1b
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Dec 7 10:28:06 2016 -0800

    Drop refresh from draw loop
    
    Hmmm, don't seem to need it. There might be a use case where this bites us but
    until we find one lets drop it.
---
 nyx/__init__.py | 2 --
 nyx/curses.py   | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/nyx/__init__.py b/nyx/__init__.py
index 105a72a..370f954 100644
--- a/nyx/__init__.py
+++ b/nyx/__init__.py
@@ -128,8 +128,6 @@ def draw_loop():
   while not interface._quit:
     interface.redraw()
 
-    nyx.curses.refresh()  # TODO: is this necessary?
-
     if next_key:
       key, next_key = next_key, None
     else:
diff --git a/nyx/curses.py b/nyx/curses.py
index 6d61867..acac3aa 100644
--- a/nyx/curses.py
+++ b/nyx/curses.py
@@ -15,7 +15,6 @@ if we want Windows support in the future too.
   key_input - get keypress by user
   str_input - text field where user can input a string
   curses_attr - curses encoded text attribute
-  refresh - flushes content to the screen
   clear - wipes all content from the screen
   screen_size - provides the dimensions of our screen
   screenshot - dump of the present on-screen content
@@ -432,14 +431,6 @@ def curses_attr(*attributes):
   return encoded
 
 
-def refresh():
-  """
-  Ensure content is flushed to the screen.
-  """
-
-  CURSES_SCREEN.refresh()
-
-
 def clear():
   """
   Clears all content from the screen.





More information about the tor-commits mailing list