nushell / nushell/nushell

`nushell` replicates prompt line with every keystroke on `wezterm`

Open
#5,585 85 comments 34 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:line-editor category:upstream
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 19h
Merged PRs (30d)
85

Description

Describe the bug

Every keystroke duplicates the prompt line for no reason.

See wez/wezterm#1999.

I had to post a bug here, as I'm beginning to think that this is
very much tied to nushell and not the wezterm (or atleast both).

How to reproduce

Nothing but type in your terminal and see the prompt replicate.

Expected behavior

I don't expect the terminal to fill up with the line before the keystroke.

Screenshots

No response

Configuration
key value
version 0.62.0
branch
tag
build_os windows-x86_64
rust_version rustc 1.60.0 (7737e0b5c 2022-04-04)
rust_channel stable-x86_64-pc-windows-msvc
cargo_version cargo 1.60.0 (d1fd9fe2c 2022-03-01)
pkg_version 0.62.0
build_time 2022-05-09 20:50:11 +02:00
build_rust_channel release
features default, trash, which, zip
installed_plugins
Additional context

I'm on Windows. I tried with nightly wezterm, latest stable of nu, with no configuration in wezterm, and with default configuration for nushell; We also tried to no configuration files for nushell.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the prompt duplication on Windows with Nushell and WezTerm, first using the default configurations described in the issue, then compare the tested stable and nightly setups. Trace the interaction responsible for redraws as each key is typed; done means the terminal no longer repeats the prompt line before each keystroke.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.