Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clear-screen timing when showing context #1026

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -7379,6 +7379,9 @@ def do_invoke(self, argv: List[str]) -> None:
if redirect and os.access(redirect, os.W_OK):
enable_redirect_output(to_file=redirect)

if self["clear_screen"] and len(argv) == 0:
clear_screen(redirect)

for section in current_layout:
if section[0] == "-":
continue
Expand All @@ -7400,9 +7403,6 @@ def do_invoke(self, argv: List[str]) -> None:

self.context_title("")

if self["clear_screen"] and len(argv) == 0:
clear_screen(redirect)

if redirect and os.access(redirect, os.W_OK):
disable_redirect_output()
return
Expand Down