octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49573] version 3.2.4 not displaying colors in


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #49573] version 3.2.4 not displaying colors in a terminal
Date: Thu, 10 Nov 2016 19:33:16 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #2, bug #49573 (project octave):

I couldn't help myself, I was curious, and the relevant change is the one that
added support for octal escape sequences in double-quoted strings in version
3.8.0.

In old versions of Octave,


>> "\033" == char ([0, 0x31, 0x31])
ans =

   1   1   1


this double-quoted string contains three characters, a NUL byte, and two 3s.

In recent versions of Octave (starting with 3.8.0), this is parsed as an octal
escape sequence. The cprintf.m script you pointed to makes use of this to
build its terminal escape sequence strings.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49573>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]