Whatever it is useful for ...
The easiest way (without having to dig out the internals of Base.REPL ) is to write the corresponding character in STDIN , for example
write(STDIN.buffer,'?');
If you want to run REPL immediately and go into shell mode, call julia as
julia -i -e write(STDIN.buffer,';')
source share