question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MicroPython raw mode with escape codes

See original GitHub issue

CircuitPython 8 will be using the OSC set title sequence to show a “sticky status”. This is mainly useful for the IP address of a wifi board. The escape sequence is: \x1b]0;<title>\x1b\\ (One trailing \). I’m happy to help make this work in Thonny but could use some guidance.

First, how should this work? The simplest thing is to filter these out so that the transfer over serial stuff works. That would prevent the titles from working in an external terminal though. Is there somewhere we could show the status in Thonny?

Second, where are the relevant files? I haven’t gotten too oriented in the source yet.

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
aivarannamaacommented, Aug 1, 2022

In the next beta the title will be shown like this:

image

I hope to release the next beta by the end of this week.

0reactions
tannewtcommented, Oct 11, 2022

I’d suggest hopping on the discord and asking for help in #circuitpython-dev. I’m on vacation this week

On Wed, Jul 20, 2022, at 3:25 AM, Aivar Annamaa wrote:

I just received Feather ESP32 v2 and tried https://adafruit-circuit-python.s3.amazonaws.com/bin/adafruit_feather_esp32_v2/en_US/adafruit-circuitpython-adafruit_feather_esp32_v2-en_US-20220719-9d95fc1.bin on it, but it keeps looping following output:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff ets Jul 29 2019 12:21:46 Any ideas what could be wrong? Does it require special esptool arguments compared to other ESP32 boards?

— Reply to this email directly, view it on GitHub https://github.com/thonny/thonny/issues/2349#issuecomment-1190101741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM3KITO435AYISJO4OG3LVU7HZVANCNFSM53QHX2GA. You are receiving this because you authored the thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raw REPL - MicroPython Forum (Archive)
If you use programs like picocom or minicom, Ctrl-A is their escape char. You hev to press Ctrl-A twice, to get it sent...
Read more >
Escape characters in raw Python string [duplicate]
String quotes can be escaped with a backslash, but the backslash remains in the string; for example, r"\"" is a valid string literal...
Read more >
Python String Format, String Format Specifiers, Escape ...
A raw string is created by prefixing the character r to the string. In Python string format, a raw string ignores all types...
Read more >
Escape Sequences in Python
Escape sequences allow you to include special characters in strings. To do this, simply add a backslash ( \ ) before the character...
Read more >
How To Use Python Raw String
Troubleshooting Quotes and Backslash Characters in Raw Strings. In a raw string, quotes can still be escaped with a single backslash character, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found