MicroPython raw mode with escape codes
See original GitHub issueCircuitPython 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:
- Created a year ago
- Comments:9 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In the next beta the title will be shown like this:
I hope to release the next beta by the end of this week.
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: