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

[Bug] Occasionally unable to clear characters after popen on Windows #545

Open
UlyssesZh opened this issue May 30, 2023 · 3 comments
Open
Labels
bug Something isn't working Windows

Comments

@UlyssesZh
Copy link

First call IO::popen and then call Reline::readline. On Windows, it occasionally (not always) trigger a bug. When the bug is triggerred, it spam a lot of characters while being unable to clear them. It is kind of hard to describe how the bug looks. Just see the video:
https://github.com/ruby/reline/assets/26196187/e904714f-c2c4-48e7-baa6-f3ff5a7a463e

The code used in the video:

# test.rb
require 'reline'
IO.popen 'ruby -e "puts %q{Hello, world!}"'
loop { p Reline.readline '> ' }
  • Ruby: 3.2.0
  • Reline: 0.3.4
  • OS: Windows 11 version 22H2 (in VirtualBox)
  • Terminal and shell: Windows Terminal, PowerShell
@rubyFeedback
Copy link

I think I ran into something similar some time ago. I did not report it because I had additional, perhaps other, problems. I test primarily on Linux and need to transfer data onto the windows machine on my left, which can be cumbersome hence why i don't use my windows machine that much.

@ima1zumi ima1zumi added the bug Something isn't working label Jun 7, 2023
@nobu
Copy link
Member

nobu commented Jun 8, 2023

Does it happen only on Windows Terminal, or also on Command Prompt?

@UlyssesZh
Copy link
Author

Does it happen only on Windows Terminal, or also on Command Prompt?

Yes, both.

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
Development

No branches or pull requests

4 participants