This commit is contained in:
Giorgio Calderone 2020-03-25 18:58:20 +01:00
parent d42df99760
commit 805fbe2276

View File

@ -352,7 +352,11 @@ function GPSession(sid::Symbol)
pin, pout, perr, proc, chan)
sessions[sid] = out
# Set window title
for l in options.init
writeread(out, l)
end
# Set window title (if not already set)
term = writeread(out, "print GPVAL_TERM")[1]
if term in ("aqua", "x11", "qt", "wxt")
opts = writeread(out, "print GPVAL_TERMOPTIONS")[1]
@ -360,9 +364,6 @@ function GPSession(sid::Symbol)
writeread(out, "set term $term $opts title 'Gnuplot.jl: $(out.sid)'")
end
end
for l in options.init
writeread(out, l)
end
return out
end