gui-cs / Terminal.Gui

Cross Platform Terminal UI toolkit for .NET
MIT License
9.57k stars 682 forks source link

Sample Application fills terminal with nonsense after shutdown when mouse moves. #3266

Closed byamagata closed 34 minutes ago

byamagata commented 6 months ago

Describe the bug After quitting the sample application using Ctrl+Q, the terminal will fill with nonsense and continue to fill while the mouse is moving over the terminal.

To Reproduce Steps to reproduce the behavior:

  1. dotnet new tui
  2. After app startup, quit by using Ctrl+Q
  3. Move mouse around terminal

Expected behavior Application quits as expected, no mouse inputs are captured

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

tznind commented 6 months ago

Hmn from memory the template references the latest nuget package. So could be os or a breaking change in latest v1 package?

I will have a look and see if I can reproduce when I get a chance. Can you please post the program.cs code that is generated for you on your machine?

On Fri, 23 Feb 2024, 14:54 Benny Yamagata Jr., @.***> wrote:

Describe the bug After quitting the sample application using Ctrl+Q, the terminal will fill with nonsense and continue to fill while the mouse is moving over the terminal.

To Reproduce Steps to reproduce the behavior:

  1. dotnet new tui
  2. After app startup, quit by using Ctrl+Q
  3. Move mouse around terminal

Expected behavior Application quits as expected, no mouse inputs are captured

Screenshots If applicable, add screenshots to help explain your problem. image.png (view on web) https://github.com/gui-cs/Terminal.Gui/assets/26102991/152bab74-dc7b-4a5b-864f-ecf4b635b45a

Desktop (please complete the following information):

  • OS: MacOS
  • Version 14.3.1
  • Shell: zsh (inside iTerm2)

— Reply to this email directly, view it on GitHub https://github.com/gui-cs/Terminal.Gui/issues/3266, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHO3C5GSLUXFS6WRSGHFVSLYVCUUBAVCNFSM6AAAAABDW3MXVOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TCMRVGY4TANQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dodexahedron commented 6 months ago

Not to derail any troubleshooting or anything, but...

For what it's worth, I have encountered the same behavior, on both Windows and Linux as the client OS, using Konsole and Windows Terminal, with SSH sessions to remote systems running zsh. It seems even more likely to happen when something takes over the whole terminal, such as less, tmux, screen, or a Terminal.Gui application, which leads me to believe there's a bug or peculiarity of zsh at the bottom of this. Those experiences go back years.

bytedreamer commented 6 months ago

Sending the command reset resolves the issue with a SSH session into a Raspberry Pi