Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce optional mnemonics #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkotowski
Copy link
Contributor

(probably a little too over-engineered)

Add option to display established mnemonics for well-known escape sequences to make it easier to search for more information.

  • introduce ECMA-48, DEC, and Xterm mnemonics
  • add --mnemonics,-m flags
  • add tests for output changed by flags (raw and mnemonics)
  • pass sequence data with seqInfo to handle multiple types of info per one sequence

Further details:
The optional flag adds <MNEMONIC> between the dissected contents of the sequence and the explanation. Not displayed in situations like Text or sequences without mnemonic and when sequence's type is the same as the mnemonic (SOS, PM, …).

I believe the current PR introduces mnemonics to all currently handled sequences that have one.

Example:
Screenshot_20250309_164142

Add option to display established mnemonics for well-known escape
sequences.

  * introduce ECMA-48, DEC, and Xterm mnemonics
  * add `--mnemonics`,`-m` flags
  * add tests for output changed by flags (raw and mnemonics)
  * pass sequence data with `seqInfo` to handle multiple types of info
    per one sequence

Signed-off-by: Michał Kotowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant