Search found 48 matches

by sebi
Mon Feb 08, 2021 5:40 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

VSCode doesn't seem to block/redirect the `Ctrl-^` key stroke as it works great now exiting mpr with my new keyboard layout definition. Additionally,`Ctrl-]` (`Ctrl-)`) works too in a standard Windows console. Thanks Robert for making me domesticate mpr, a great tool! You should push your improvemen...
by sebi
Mon Feb 08, 2021 5:14 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

The difference is when you push a function or cursor key, which issues two bytes. These are then displayed in a single line. Indeed that I noticed and figured out by reading your code. Works great! Especially with arrow keys! What I will do is define a new keyboard layout in MSKLC where `Ctrl-^` se...
by sebi
Mon Feb 08, 2021 4:51 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

You may eventually use a control code which is more rarely used, like Ctrl-T (in pye: go to line 1). Or you go for a function key. I might do that indeed! Your first or the second option. I modified my little script to show function and cursor keys better. I have just tried it. I didn't note some r...
by sebi
Mon Feb 08, 2021 3:52 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

I did use your little piece of code to track the ASCII values obtained when pressing keys and key combinations. It works great. Strangely there is no output at all when pressing on `Ctrl-^`, or all other `Ctrl-Keys` around (`Ctrl-$`, `Ctrl-รน`, etc.). I recall `Ctrl-^` working a few days ago thought....
by sebi
Mon Feb 08, 2021 10:03 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

Thanks so much Robert! I am using your mpr code and it works great! I didn't know anything about the sledge hammer to capture `Ctrl-C` properly. Is it for Windows only or does it apply to linux as well? I have just tweaked it a bit to replace `Ctrl-]` by `Ctrl-X` (b"\x18") to exit the Repl properly ...
by sebi
Sat Feb 06, 2021 12:06 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

On my windows 10 I have set the terminal window to support VT100 commands. See: https://stackoverflow.com/questions/51680709/colored-text-output-in-powershell-console-using-ansi-vt100-codes If I understood right this is to make the Windows terminal window able to display colors, right? Hence when u...
by sebi
Thu Feb 04, 2021 5:38 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

I faced the same challenge and tried all possible Ctrl-Key combination on my German Keyboard I just did the same and came out with the `Ctrl-^` combination on my MacBook french keyboard running Windows 10 under bootcamp. Thanks for the methodology and giving me hope a `Ctrl-Key` combination would p...
by sebi
Wed Feb 03, 2021 11:21 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

Thanks @Roberthh for all those explanations: it is the perfect little tutorial I was looking for!! It works great indeed! Especially after setting the terminal window to support VT100 commands thanks to your link. A problem I have with my french keyboard though is the impossibility to type `Ctrl-]` ...
by sebi
Wed Feb 03, 2021 10:33 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

Ohh thanks that would be nice.
Most of the time I use wsl but as recently I switched to wsl 2, I just figured out that it doesn't support serial coms yet.
I might switch back to wsl 1 if I cannot make mpr work on Windows.
by sebi
Wed Feb 03, 2021 10:16 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21423

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

+1 I was able to use rshell on Windows with the Pico using the same trick than @fmentiplay to make that change permanent. I am looking forward to seeing someone figure out if it is a problem with flow control thus allowing rshell to work with the Pico without the current tweak. I also tried to use m...