💾 Archived View for librehacker.com › gemlog › tech › 20220411-0.gmi captured on 2024-08-18 at 18:44:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

Mecrisp Forth Terminal Settings

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.