Re: [PHP] Storing and then printing ANSI escape sequences in (andthen from) variables

2009-01-07 Thread Fred Briand
Paul M Foster a écrit : On Wed, Jan 07, 2009 at 11:11:53PM +, Luke Slater wrote: Hi, I'm storing ANSI escape sequences in an array, stored like this: $connections[$channel][2] = $info['colour']; $info['$colour'] would contain something like \033[33m Now, my problem is when I try

Re: [PHP] Storing and then printing ANSI escape sequences in (andthen from) variables

2009-01-07 Thread Luke Slater
The issue isn't that I can't get colours to display on the screen, if I were to substitute $pstring = $connections[$channel][2] . $connections[$channel][1] . . $buffer . chr(7); for $pstring = \033[33m . $connections[$channel][1] . . $buffer . chr(7); then it would work perfectly.