<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">OK, I solved it. This fails:<br>
      <br>
      "\\hello" => xmit.addString;<br>
      <br>
      but this works:<br>
      <br>
      "\\hello" => string foo;<br>
      foo => xmit.addString;<br>
      <br>
      I guess the addString method doesn't have fully recognize escape
      characters?<br>
      <br>
      Joel<br>
      <br>
      On 03/08/2013 03:44 PM, Joel Matthys wrote:<br>
    </div>
    <blockquote cite="mid:513A4DA3.7080709@yahoo.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <font face="Ubuntu">Hi all. I'm working on a project that requires
        me to send a backslash character via OSC.<br>
        <br>
        This construct is typical of C family languages:<br>
        <br>
        "\\hello"  -------> prints: \hello<br>
        <br>
        but ChucK doesn't seem to let me escape a backslash. Instead I
        get [unrecognized escape sequence: '\h'].<br>
        <br>
        Same when I try to use octal: "\134hello"<br>
        <br>
        Setting aside the crazy fact that I have to send a backslash
        over OSC (it's for Guido music notation in InScore), does anyone
        know how to get a backslash in a ChucK string?<br>
        <br>
        Thanks,<br>
        Joel<br>
      </font> <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>