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...
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
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev