-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add Windows compatibility. #38
base: master
Are you sure you want to change the base?
Conversation
This resolves issue dhylands#17.
This works okay in
Secondly, the backspace in
The first Lastly I preferred
However in
|
The weird characters are the codes to colorization. You can run rshell with the |
Thank you for pointing out the |
I think that the |
I've used rshell under cygwin before with no issues. I was probably using Windows 7 at the time. Which version of WIndows are you using cygwin with ans rshell isn't working? |
Hiya, I just started exploring MP and wanted to optimize workflow with rshell. The only problem I had entering rshell was as follows:
and
but after commenting the dev.timeout() call, was able to run it. so from line 2240 down now looks like this:
I'll report back if this causes any unforseen problems and I suspect this is a peculiarity with windows stdout. Also, same issues with backspace in the REPL but nocolor works like a champ. |
I just fixed the issue with dev.timeout in 190d5fc |
Thank you for a great tool and your support. Works like a champ after replacing
as described in issue #17 Same problems with what I think is character encoding in the crossover from RSHELL to REPL. The example below shows what is seen with trying to backspace. Arrow Key output is also wrong. Capital letters. I don't think it's so much a REPL problem as it is the way windows is echoing the input and/or passing it through rshell to REPL. I have tried changing console fonts with no result so it's not that part of it.
I found this on SO which I think is a clue to the issue. It's the usual M$ incompatibility with windows terminal. I don't get this at all in PuTTY over a serial connection. That SO overflow explanation is so thorough, I'd need to set aside an evening for it. |
This works fantastic in Windows 10 and in VS Code's terminal window. If only the up arrow worked in repl it would be ideal! Windows 10 arrow keys work in rshell but not in it's repl. I get H for up arrow rather than the previous command. I get M for right arrow rather than moving right. I get P for down arrow and K for left arrow. Backspace works fine. |
1861b2d
to
a28df4c
Compare
Possibly look a using an updated fork of pyreadline: git+https://github.com/osrf/pyreadline |
Agree, changing dependency pyreadline to pyreadline3 will fix the following error for Python 3.10+ on Windows (because collections.Callable is moved to collections.abc.Callable).
Installed pyreadline3 myself as this is available via pip. |
This resolves issue #17.