The molt_shell::repl should use Interp::complete to detect incomplete lines, and allow the user to enter continuation lines until the command is complete. It should use > as the completion prompt, unless the tcl_prompt2 variable is defined.
If tcl_prompt2 is defined, evaluate its value as a script (Interp::eval).
On success, the result is the continuation prompt string.
On failure, output the error message; then, on the next line, the default continuation prompt.
The
molt_shell::repl
should useInterp::complete
to detect incomplete lines, and allow the user to enter continuation lines until the command is complete. It should use>
as the completion prompt, unless thetcl_prompt2
variable is defined.tcl_prompt2
is defined, evaluate its value as a script (Interp::eval
).