[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Highlight.analyze is no longer parsing line with strings correctly
[Thread Prev] | [Thread Next]
- Subject: Highlight.analyze is no longer parsing line with strings correctly
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Fri, 5 Dec 2025 16:09:52 -0800
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 12/5/25 11:21, Brian G wrote:
I get this when printing now, the escape sequences stopped working it seems, it seems to do strange things in Konsole2J 37;42m 0;237H 1J 1;1HSuperior ability breeds superior ambition. -- Spock, "Space Seed", stardate 3141.9 0m example code looks something like :Print "\e[2J\e[37;42m\e[" & Str(lines.count - 1) & ";" & file.out.term.width & "H\e[1J\e[1;1H";it has worked for last few years....
ok after a little more investigation, i am using
Syms = Highlight.Analyze(InVar) ' to display it highlighted
input: PRINT "\e[0m"
output : Syms = the elements ["PRINT","\"","\\e","[0m\""]
then i try to put the line back together using join(" ") and get:
PRINT " \e [0m"
It would seem that highlight analyze has a problem.
--
~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
| Print for some reason is not printing escape sequences as of the last update | Brian G <brian@xxxxxxxxxxxxxxxx> |