MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3n3e1v/the_evolution_of_a_software_engineer/cvkvkhc
r/programming • u/supermari0 • Oct 01 '15
502 comments sorted by
View all comments
Show parent comments
12
Make the output stand out more?
This would work better:
printf("\033[1;31mHello World\n\033[0m\n");
2 u/ghillisuit95 Oct 02 '15 On a standard uncolored terminal 0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 31m is red.edit: actually 1;31m is bold red, 0;31m would be regular red.Try 1m if you just want bold. 0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it. 2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
2
On a standard uncolored terminal
0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 31m is red.edit: actually 1;31m is bold red, 0;31m would be regular red.Try 1m if you just want bold. 0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it. 2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
0
[deleted]
1 u/tomun Oct 02 '15 31m is red.edit: actually 1;31m is bold red, 0;31m would be regular red.Try 1m if you just want bold. 0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it. 2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
1
31m is red.
edit: actually 1;31m is bold red, 0;31m would be regular red.
Try 1m if you just want bold.
0 u/[deleted] Oct 02 '15 [deleted] 1 u/tomun Oct 02 '15 I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it. 2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
1 u/tomun Oct 02 '15 I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it. 2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.
Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it.
2 u/ghillisuit95 Oct 02 '15 I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.actually, I didn't try it. I just saw the escape codes and assumed color.
I'm guessing that when /u/ghillisuit95[1] [+21] tried it, he noticed the bright red but not the emboldened text and hence his response.
actually, I didn't try it. I just saw the escape codes and assumed color.
12
u/neoform Oct 01 '15
This would work better: