Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor flashing / teleporting on typing in a nushell prompt on windows #2779

Open
nodomw opened this issue Nov 22, 2022 · 6 comments
Open

Cursor flashing / teleporting on typing in a nushell prompt on windows #2779

nodomw opened this issue Nov 22, 2022 · 6 comments
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows

Comments

@nodomw
Copy link

nodomw commented Nov 22, 2022

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

wezterm 20221119-145034-49b9839f

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

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Upon typing in the prompt, the cursor starts teleporting between the end of the line and the cell below the prompt. See gif below

Happens on both stable & nightly

nu exe-1669141930

~-1669143098

To Reproduce

I'm running nushell with starship, I tried it on cmd with clink and it does not occur. I tested on alacritty and windows terminal. In alacritty there was no issue whatsoever, on wt, there was a different kind of flashing.

I tried replicating the same thing in neovim, did not happen.

Turns out it happens with the default starship config as well.

Configuration

starship.toml
wezterm.lua

(github did not let me upload the configuration with a .lua extension)

Expected Behavior

No response

Logs

No response

Anything else?

No response

@nodomw nodomw added the bug Something isn't working label Nov 22, 2022
@wez
Copy link
Owner

wez commented Nov 22, 2022

Please capture a terminal recording:

  • Launch wezterm. If possible, please use the default terminal size of 80x24 cells as it helps to keep things smaller and easier to manage.
  • Inside that terminal run wezterm record to start a recording session.
  • Run through your reproduction steps
  • Then type exit
  • You should see a message like:
*** Finished recording to /var/tmp/wezterm-recording-sF6B3u.cast.txt
  • Attach the file that it produced to this issue.

The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using wezterm replay.

The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything.

@wez wez added the waiting-on-op Waiting for more information from the original poster label Nov 22, 2022
@nodomw
Copy link
Author

nodomw commented Nov 22, 2022

@github-actions github-actions bot removed the waiting-on-op Waiting for more information from the original poster label Nov 22, 2022
@holly-hacker
Copy link

I'm getting something similar using wezterm on windows with the nu shell and default configuration. When I type in nu, every input will cause a new line to be created. I've attached a wezterm record session but it looks like this:
typing ls -la

Tested on latest release. If this turns out to be a different bug, I can create a separate issue with more detail and testing.

wezterm-recording-vnYN5M.cast.txt

@ZodiacWind
Copy link

ZodiacWind commented Dec 3, 2022

I have encountered both two issues, but I cannot replicate the bug with wezterm replay <the record file> . I have not figured out why. Maybe there are some conflictions between nushell and wezterm.

@ZodiacWind
Copy link

ZodiacWind commented Dec 4, 2022

I think this issule is related to nushell/nushell#5585 and #1999. My current workaround is set shell_integration:false in config.nu for my nushell.

@wez wez changed the title Cursor flashing / teleporting on typing in a prompt Cursor flashing / teleporting on typing in a nushell prompt on windows Dec 4, 2022
@wez wez added the Windows Issue applies to Microsoft Windows label Dec 4, 2022
@wez
Copy link
Owner

wez commented Dec 4, 2022

Yeah, this sounds like a duplicate of #1999, but let's keep this one open for visibility. The issue is at the intersection of nushell and the windows conpty layer; it is tracked in nushell/nushell#5585 and upstream of that in the conpty layer in microsoft/terminal#13710

wez added a commit that referenced this issue May 21, 2023
I want to try out the FTCS flush and any other conpty fixes that may
have been made since our last update.

refs: microsoft/terminal#13710

These other issues may experience improved results, but likely not:

refs: #3748
refs: #3624
refs: #2779
refs: #2902
refs: #3531
refs: #3562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

4 participants