Skip to content

Flickering when typing in Windows Terminal #6214

@fdncred

Description

@fdncred

Describe the bug

with every character typed the screen flickers see gifs below. it works fine in 0.65.0.

git bisect says
98126e2 is the first bad commit

I don't really understand what is going on and why this PR is causing issues.

How to reproduce

run nushell on windows terminal with oh-my.nu custom prompt. it may happen with other prompts too, i'm not sure. i'm also not sure if it happens on other operating systems. i haven't noticed it on my mac but maybe redraw/flicker is so fast i don't see it.

Expected behavior

no flickering

Screenshots

both these gifs demonstrate the flicker/redraw/blink but they don't capture it perfectly. it flickers on every keystroke. the gifs miss some flickers.
flicker1
flicker2
In WezTerm it's horrendous and redraws the prompt on every single character
flicker3

Configuration

key value
version 0.66.3
branch
commit_hash 56069af
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.62.0 (a8314ef7d 2022-06-27)
rust_channel stable-x86_64-pc-windows-msvc
cargo_version cargo 1.62.0 (a748cf5a3 2022-06-08)
pkg_version 0.66.3
build_time 2022-08-02 10:22:29 -05:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins gstat, inc, nu-example-1, nu-example-2, nu-example-3, query, query json, query web, query xml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions