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

Tab completion changes after Ctrl+C #19519

Open
smcintyre-r7 opened this issue Sep 30, 2024 · 1 comment
Open

Tab completion changes after Ctrl+C #19519

smcintyre-r7 opened this issue Sep 30, 2024 · 1 comment
Assignees
Labels

Comments

@smcintyre-r7
Copy link
Contributor

After Ctrl+C has been issued to msfconsole, the tab completion options start to append a space at the end of words which makes it very difficult to continue tab competing the rest of the path.

Steps to reproduce

  1. Start msfconsole
  2. Type use exp and hit tab, see it expand to use exploit/ (no trailing space, ready to complete more)
  3. Hit Ctrl+C
  4. Type use exp and hit tab, see it expand to use exploit/ (trailing space, completion terminated)
@sjanusz-r7
Copy link
Contributor

For context, the cause of this issue is:

::Reline.completion_append_character = ' '

It seems that Reline and Readline in this scenario do behave differently. Readline did set this append char before, but there must have been under-the-hood logic to not insert it in this scenario.
This issue appears after performing a single tab-completion, and Ctrl+C is not necessary to replicate it.
Will have a fix ready shortly 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants