Unexpected warning when launching REAL in batch mode inside shell script

Summary

Launching REAL in batch mode inside a shell script results in the following message:

WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

Steps to reproduce

  1. Create an empty file named R.csv
  2. Launch REAL and issue the following commands at the prompt:
.add R(A):R.csv
.save test.json
.quit
  1. Now launch REAL in Bash or Zsh with the command: out=$(java -jar real-0.6.1.jar -d test.json -q "R")

Expected result

No output.

Actual result

<timestamp> org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

Possible fixes

Do not attempt to create a JLine terminal (and associated LineReader) in batch mode.

Additional information

OS macOS Monterey & 12.5.1
Java java 12.0.2 2019-07-16
real 0.6.1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information