Skip to content
Snippets Groups Projects
Commit 0e7ee972 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

use readline only in interactive mode

parent d66c9159
Branches
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ public class RCommand {
throw fatal("embedded mode disabled");
// consoleHandler = new EmbeddedConsoleHandler(rsp, engine);
} else {
boolean useReadLine = !rsp.noReadline();
boolean useReadLine = isInteractive && !rsp.noReadline();
if (useReadLine) {
return new JLineConsoleHandler(inStream, outStream, rsp.isSlave());
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment