-
Notifications
You must be signed in to change notification settings - Fork 139
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
Not Windows Compatible #17
Comments
It does work on windows under cygwin. Are you aware of a similar module for windows? I've managed to find pyreadline: https://pypi.python.org/pypi/pyreadline and I found this blog post on using it with rlcompleter: Would you be able to test this? |
I tried to had some minor tweaks to make the rshell work on windows. With pyreadline installed if I press TAB in the CPython REPL it will throw Obviously a pyreadline bug |
I just learned about |
This resolves issue dhylands#17.
@ccooper21 it works,thanks |
Working through another issue, I reinstalled and it occurred to me a minor change could prevent manual editing. I'm a gitidiot so here is what did starting at line 67
I guess all that's needed is an else to use the standard line in *nix systems. |
see #62 |
Hi All, I managed to get rshell working on windows through the Linux Subsystem for windows.
Good article here with the background https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/ |
I did this:
Then I've installed pyreadline:
Note: I used |
You should be able to exit the REPL by using Control-X. I didn't want to use Control-D since Control-D does a soft reset under MicroPython. It should print a line mentioning Control-X when you enter the REPL. |
To exit from rshell (rather then the micropython repl within rshell) I normally use Control-D, but that didn't seem to work under Windows, so I added an exit command (no parenthesis). |
Hello @dhylands, ctrl-X indeed exits the repl, while ctrl-D exits the rshell (when in git-sh). |
Again ontopic... I tried rshell also on cmd.exe (win7).
|
I have'n't really used ESP-IDF directly, and I rarely use arduino, so I'm not really sure which would be more appropriate. As for help and exit being built-in commands to cmd.exe, I don't understand the issue. Those commands will only be interpreted by cmd.exe if you're at the cmd prompt. If you're at the rshell prompt, then the commands will be interpreted by rshell. So yeah, if you type the command twice, the first one will be interpreted by rshell and when it exits, the second buffered command will be executed by cmd.exe. |
I personally use ESP-IDF, simply because it is developed by Espressif, so
there is never going to be any versioning issues with different ESP
modules. While I do love Arduino, it is so much more open to issues because
of it's community focus.
The ESP-IDF site has great documentation, and if you're looking for a
community to help you, check out esp32.com
…On Fri, Dec 21, 2018 at 11:50 AM karelv ***@***.***> wrote:
Hello @dhylands <https://github.com/dhylands>, ctrl-X indeed exits the
repl, while ctrl-D exits the rshell (when in git-sh).
Thanks a lot. Now I have another question, off-topic. I'm new to
micropython and ESP32. I just now have a ESP32 module. I want to create an
application with CAN bus 2.0, but I have misread the micropython doc, CAN
is only implemented for pyboard. What would you suggest me to do? Go
arduino, or go ESP-IDF as development platform? Is it possible to 'port'
arduino to micropython? Or I go better with ESP-IDF?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AArMRMDAbJ-OKa6CG8KQ4-mrtB4BJsjSks5u7TuUgaJpZM4K7I6m>
.
--
Paul Christian Allsopp
Please recycle - it ain't easy being green
|
This cannot be used out-of-the-box on Windows because the readline module is needed, which is not available for a Windows shell. Maybe you could detect OS and load a similar module for Windows users?
Thanks
The text was updated successfully, but these errors were encountered: