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

Showing context when the screen is cleared with CTRL+L #832

Closed
juliavdkris opened this issue Mar 22, 2022 · 2 comments
Closed

Showing context when the screen is cleared with CTRL+L #832

juliavdkris opened this issue Mar 22, 2022 · 2 comments

Comments

@juliavdkris
Copy link

There's a setting to clear the screen when running the context command, but not vice versa. I would love to be able to press CTRL+L to clear the screen and automatically run the context command

Describe the solution you'd like
I think the most straightforward would be a setting (similar to context.clear_screen to clear the screen when running context).
Or maybe even add an easy way for users to configure their own keybinds? I saw you can do something using .inputrc files, but it would be awesome to have an easy to use method for configuring this specifically for gdb/gef! :)

Describe alternatives you've considered
I'll try messing around with .inputrc for a bit, to create my own hacky solution

@theguy147
Copy link
Collaborator

I don't really understand the (gef) feature you're proposing.

You want the gef command context to be executed after clearing your terminal emulator's screen with the CTRL+L keyboard shortcut?

This seems to be very far out of the scope for GEF. To realize something like this while trying to be terminal emulator and distro independent we would have to setup a whole keyboard event handling routine and thereby noticeably increase the dependencies and complexity for GEF and it would most likely mess up the current setup for a lot of the users.

If you really need this you could check with your terminal emulator and see if you setup a different keybinding on your machine that does this for you.

But TBH I also don't really see the benefit in such a shortcut. Could you explain how such a behavior would benefit you?

P.S. If you don't like the GEF output in the same terminal pane as the GEF prompt then you can have a look at our tmux-setup command here. That way you can clear your gef prompt pane and still have the context visible without any new keybindings.

@juliavdkris
Copy link
Author

Ahh right, this is of course handled by the terminal emulator and not by GEF, my bad! The benefit to me would mostly be not having to clear my screen and type ctx all the time, but I understand that this would be wayyy out of scope :)

I'll have at the tmux setup, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants