Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
msfconsole
on PowerShell After Update to v6.4.16 Windows11 #19294 by working around anOpen3
bug reported on the gem's GitHub issue page for Windows 11 (this compliments Reline, as we need Reline as well as the work-around to fix this)Readline::FILENAME_COMPLETION_PROC
, which is stubbed asnil
in Reline. We use this to not have to write our own customFILENAME_COMPLETION_PROC
.master
, where pressingCtrl+C
inirb
prompt would result in a deadlock exception.real-readline
option as deprecated, due to the planned removal of theReadline
gem in the futureReadline
single-line input fallback mode from SQL sessions, as Reline will be used exclusivelyWindows 11 - Before
Can't delete characters in the prompt, and getting a bug where the input gets re-entered multiple times.
Windows 11 - After
No duplicate input in prompt, prompt can be cleared using backspace and navigated using left and right arrow keys.
IRB - Before
IRB - After
Verification
msfconsole
postgres_login
query
andquery_interactive
commands work when provided single and multi-line inputirb
command worksCtrl+C
inirb
prompt does not result in a deadlock exceptionirb
, the autocompletion suggestions do not leak fromirb
, and prompt remains normalmsfconsole
works on Windows 11 and does not freeze (linked issue)set
command etc.