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

Support reading multi-line input in Ronin::Core::CLI::Shell.start #19

Open
postmodern opened this issue Jan 23, 2022 · 1 comment
Open
Labels
enhancement New feature or request idea Random idea shell Shell

Comments

@postmodern
Copy link
Member

postmodern commented Jan 23, 2022

Support reading multi-line input using Reline.readmultiline(prompt, use_history) { |multiline_input| ... } with a block that checks if the last line is the closing line. We will need to count opening/closing quotes to determine if the input has been "closed". Example: https://github.com/ruby/reline#multi-line-editing-mode

@postmodern postmodern added enhancement New feature or request shell Shell labels Jan 23, 2022
@postmodern postmodern added this to the 0.1.0 milestone Jan 23, 2022
@postmodern postmodern added the idea Random idea label May 7, 2022
@postmodern postmodern removed this from the 0.1.0 milestone May 7, 2022
@postmodern
Copy link
Member Author

This would require detecting when the multi-line input begins and ends, which would vary based on the command or the type of shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea Random idea shell Shell
Projects
None yet
Development

No branches or pull requests

1 participant