Using the up command on the default Windows REPL (at least on Windows 7) makes the REPL change size and aspect ratio.
It happens during the "Resolving package versions" phase, and am suspecting it's related to opening the powershell. Other commands do not exhibit the issue.

possibly related: https://github.com/JuliaLang/julia/issues/28561
Interestingly, this problem is not exhibited in ConEmu, which uses cmd in the background:

Reproduces by simply executing:
julia> run(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -Command ''`)
Aha thanks!
It seems that this is not a problem with Julia, since the same thing happens when executing powershell -Command '' directly in cmd.
I am running julia 1.0.0 in a powershell-window on windows 10 and cannot reproduce this bug.
Can't repro this either on Windows 10, neither in cmd nor in powershell.
Yeah, it doesn't happen in Windows 10. It's probably not worth it to try to track down the reason at this point.
Happens to me in Windows 10 x64 1803 Build 10.0.17134.228 and Julia Version 1.0.0 (2018-08-08)
It changes to font of the current window to "Raster Fonts" as well as changing the title to "Windows PowerShell".
I'm able to consistenly reproduce it with both this
julia> run(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -Command ''`)
and this command
shell> powershell -Command ''
but not with powershell -Command '' directly in the cmd and powershell ConHost window.
Also happens for me when e.g. adding any package via ] add ... (or just updating, ] up): this changes REPL fonts to raster fonts, changes font sizes, and changes the window header to Windows PowerShell.
This only happens on the first such call in a fresh REPL; after re-adjusting fonts, subsequent calls to e.g. ] add ... do not change anything.
This is for Windows 10 Home x64 1803 Build 17134.345 and Julia Version 1.0.0 (2018-08-08), with the usual cmd-terminal promt (e.g. no ConEmu or anything fancy).
And does it reproduce with
julia> run(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -Command ''`)
?
And does it reproduce with
julia> run(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -Command ''`)?
Yep.
This is probably related: https://github.com/Microsoft/WSL/issues/2050 (can confirm the report reported there; i.e. simply typing powershell.exe within WSL similarly messes up the appearance there).
Curiously, I don't get the same issue if calling powershell.exe directly from a cmd prompt.
I guess this is strictly an upstream issue with Windows Console then.
If https://github.com/JuliaLang/julia/pull/30014 is merged, could this issue be circumvented by using a Julia-bundled curl instead of Powershell's DownloadFile to download items on Windows?
Yes that would "solve" the issue, unless Julia uses the powershell for anything other than downloads.
This seems to be fixed on Windows version 1809 (but still broken in 1803).
Gonna close this since I don't think there is anything we can do here and it is fixed on newer Windows.
Most helpful comment
Gonna close this since I don't think there is anything we can do here and it is fixed on newer Windows.