wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

wrong rendering for rustup update output

Open espositofulvio opened this issue 2 years ago • 3 comments

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20220624-141144-bd1b7c5d

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

When running rustup update in a PowerShell Core 7.3 session issue_wezterm the download progress is wrongly rendered, text is appended at an offset instead of being replaced. I noticed the same thing happens with Alacritty but Windows Terminal correctly render the output.

To Reproduce

Open wezterm with a PowerShell Core session and type rust update, if the rust toolchain is updated, the download progress shows as the above picture

Configuration

local wezterm = require 'wezterm' return { default_prog = { 'pwsh.exe' }, color_scheme = "Dark+", font_size = 11.0, font = wezterm.font_with_fallback { 'Fira Code', 'Cascadia', }, }

Expected Behavior

The ouput of the download progress should replace the current text instead of being appended

Logs

No response

Anything else?

No response

espositofulvio avatar Jul 27 '22 16:07 espositofulvio

Did you resize the window while that command was running?

wez avatar Jul 28 '22 14:07 wez

No, I didn't. I also tried maximizing the window before launching the command to see if it was a layout problem when the line wraps around, but the result was the same. I tried with the Windows Powershell instead of Powershell Core, same result. As I said, I noticed the same behaviour with Alacritty, while Windows Terminal rendering is fine.

espositofulvio avatar Jul 28 '22 14:07 espositofulvio

I made a recording of the output from rustup. I haven't analyzed it yet; just attaching it here so I don't lose it before I get a chance to really dive in.

wezterm-recording-nhVfPy.cast.txt

wez avatar Aug 01 '22 16:08 wez