Filtering additional ANSI escape sequences

If you have specific questions or problems with any of my Freeware applications, post them here.
Post Reply
jjimenez
Posts: 1
Joined: Thu May 04, 2023 9:19 am

Filtering additional ANSI escape sequences

Post by jjimenez »

Hi,

Thank you for such a fantastic tool. I am running into a minor headache with a unfiltered ANSI escape sequence and I wonder if the "Filter ANSI Escape Sequence" option could be updated to encompass a couple more obscure sequences.

An MCU application I am interacting with has a pseudo-CLI that echoes characters sent from the host PC (i.e. from CoolTerm) but also adds the cursor save/restore ANSI escape codes (ESC 7 and ESC 8, respectively: https://en.wikipedia.org/wiki/ANSI_esca ... _sequences). The result is that when I send a string from CoolTerm, every character is echoed back with hex 1B 37 1B 38 appended, making for a very messy display. That is with the "Filter ANSI Escape Sequences" checked in the Data Handling settings.

From what I gather from https://forums.the-meiers.org/viewtopic.php?t=570, support for the cursor movement ANSI escape sequences is somewhat limited by the element used to display the text in CoolTerm, so I am not looking for functional support of the cursor save/restore codes. However, if ESC 7 and ESC 8 could be added to the filtered sequences, that would greatly improve readability in cases like this where changing what is being sent to CoolTerm is out of my control.

Thoughts?

Side note: I saw in https://forums.the-meiers.org/viewtopic.php?t=629 that you have a build that has some formatting sequence support. The MCU application I mention above also uses formatting sequences, so I would be interested in trying that feature out too if you are making it available for testing.
User avatar
roger
Site Admin
Posts: 431
Joined: Fri Apr 24, 2009 12:41 am
Contact:

Re: Filtering additional ANSI escape sequences

Post by roger »

Hi,

so far, CoolTerm can delete ESC sequences that start with ESC[, i.e. all the CSI sequences. I should be able to extend that other, such as the Fp sequences that you are seeing.

Roger
Post Reply