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

add escape sequence interpretations for OSC strings #45

Open
ChrisAshworth opened this issue Aug 25, 2023 · 0 comments
Open

add escape sequence interpretations for OSC strings #45

ChrisAshworth opened this issue Aug 25, 2023 · 0 comments

Comments

@ChrisAshworth
Copy link
Member

I believe that currently we do not process escape characters inside OSC strings when they are specified via the "QSC" human-compatible text. So, for example, if someone provides the following string to messageWithString::

/cue/my/message "a string where I want \n a newline"

It will generate an OSC message with a string argument that contains \n rather than an ASCII newline character.

I think we should probably process some escape sequences inside string arguments. Maybe these:

  • \n : new line
  • \r : carriage return
  • \t : horizontal tab
  • \v : vertical tab
  • \f : form feed / new page

I think we'd change this somewhere around here:

https://github.com/Figure53/F53OSC/blob/main/Sources/F53OSC/F53OSCMessage.m#L238

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

No branches or pull requests

1 participant