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

Allow empty context titles #732

Merged
merged 5 commits into from
Sep 29, 2021
Merged

Conversation

mahaloz
Copy link
Contributor

@mahaloz mahaloz commented Sep 28, 2021

Allow empty context titles

Description/Motivation/Screenshots

To allow a user to implement a custom context pane we need to give them a way to print no title. This includes removing the entire title line so nothing looks off. Currently, if you return "" from the user function, which is handled with context_title, then you get an empty title line. We should have support for both an empty title line and the absence of one. I purpose we allow the user to return None and modify the context_title function slightly.

How Has This Been Tested?

Architecture Yes/No Comments
x86-32 ✔️
x86-64 ✔️
ARM ✖️
AARCH64 ✖️
MIPS ✖️
POWERPC ✖️
SPARC ✖️
RISC-V ✖️
make test ✖️

Checklist

  • My PR was done against the dev branch, not master.
  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • My change adds tests as appropriate.
  • I have read and agree to the CONTRIBUTING document.

@mahaloz mahaloz changed the title All for empty context titles Allow empty context titles Sep 28, 2021
Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hugsy hugsy self-requested a review September 28, 2021 20:44
Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, minor changes

gef.py Show resolved Hide resolved
gef.py Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
@Grazfather Grazfather merged commit 5baa128 into hugsy:dev Sep 29, 2021
@mahaloz mahaloz deleted the empty_context_title branch September 29, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants