💾 Archived View for gem.librehacker.com › gemlog › tech › 20220411-0.gmi captured on 2024-08-18 at 17:34:45. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
This is what works for me, connecting to Mecrisp Forth on my Rpi Pico, through a picoprobe.
picocom --send-cmd "ascii-xfr -l 100 -s" -b 115200 --imap "lfcrlf" /dev/ttyACM0
The "ascii-xfr" part is how I am sending code files to Mecrisp to be compiled - rather than doing a copy and paste. When in Picocom, use C-a C-s to send a file. Of course, you can still just type in code when desired.
The "-l 100" part is for adding a 100 ms delay after each line is sent. This seems to fix a problem I had with losing some of the words which are sent.
The "imap" part is for translating the LF end-of-line character, outputted by Mecrisp, to CRLF. Otherwise after pressing the return key, the terminal does not go back to the beginning of the line.