On 12/14/11 13:26, Ian MacArthur wrote:
#define BOLD_ON \e[1m
#define BOLD_OFF \e[0m
const char *msg = BOLD_ON Alert! BOLD_OFF \nYour
printer is on fire;
Ah, but I see ESC[1m and I think Bold, ESC[0m and I
think attributes off...
Maybe that's just me...
On 12/15/11 01:28, MacArthur, Ian (SELEX GALILEO, UK) wrote:
That's true -- technically I should have used:
#define BOLD_OFF \e[21m
..but \e[0m is so much easier to remember to turn off everything :P
Ah, we may be talking at crossed-purposes - I was not meaning to be