I am trying to make Julia work with an expect-like program. I do not want to adapt that program but have access to its source code.
The program assumes that (in this case) the julia REPL gives the answer plus a following new "julia> " prompt. My problem is that I do not get a match to the prompt.
I then tried to look what Julia is actually responding by piping its output to a file. And this varied from environment and terminal. Under Linux I got a lot of escape sequences, under Windows powershell a doubling of the input, then the response.
Speculating… Could this be only due to different terminals or could it be that Julia tries to do something smart/colorful with its output? Is there something like a switch to a simple/dumb mode, without escape sequences?
The REPL (and its corresponding output, e.g. the julia> prompt) is only used when running interactively. When you do e.g. julia input_file.jl, the REPL doesn’t run at all and julia simply compiles & runs the code provided in the file.