ronin-rb / ronin-core

A core library for all ronin libraries.
https://ronin-rb.dev
GNU Lesser General Public License v3.0
3 stars 3 forks source link

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

Open postmodern opened 2 years ago

postmodern commented 2 years ago

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 commented 2 years ago

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