Skip to content

Instantly share code, notes, and snippets.

@popunbom
Created May 4, 2023 05:54
Show Gist options
  • Select an option

  • Save popunbom/aa944a6efd9ddb141fc48539f97327d5 to your computer and use it in GitHub Desktop.

Select an option

Save popunbom/aa944a6efd9ddb141fc48539f97327d5 to your computer and use it in GitHub Desktop.
Fix github.com/longld/peda for Python 3.x
diff --git a/lib/utils.py b/lib/utils.py
index 8f2b038..827c3f1 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -150,6 +150,7 @@ def blue(text, attrib=None):
def clearscreen():
"""Clear terminal screen"""
sys.stdout.write("\x1b[2J\x1b[H")
+ sys.stdout.flush()
class message(object):
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment