This is what I have in my juliarc.jl file
~~~
pushdisplay(TextDisplay(STDOUT)) # display() does not write to STDOUT:
evalu("1+2") vs. evalu("print(1+2)")
const STDOUT_orig = STDOUT
function evalu(s::String) # paste to console: evalu("""<Julia
commands> """)\n
try
rd, = redirect_stdout()
eval(Base.parse_input_line(s))
print("!")
s = chop(readavailable(rd))# remove extra ! preventing hang when
nothing is written to stdout
catch s
finally
redirect_stdout(STDOUT_orig)
end
clipboard(s) # return result/error-message
end
~~~
Either I overlooked something obvious, or the normal Julia output to the
console is not available in STDOUT. A couple of days ago redifining
display() did work, but with the latest nightly (and on another PC) I have
no luck any more. Has something changed in REPL?