« » Print bold text in the Terminal

Friday 31st of July, 2009 by Torgeir Filed under OS X and Terminal 2 comments

I'm not quite sure about the context of this post, but here it is anyways.

This is how to print bold text in the Terminal of OS X.

bold="\033[1m"
reset="\033[0;0m"
echo -e ${bold}bold text ${reset}normal text

2 Comments

  1. #1

    Friday 31st of July, 2009

    webjorns

    and why do I want to print bold in the terminal? smiley

  2. #2

    Friday 31st of July, 2009

    Torgeir Thoresen

    Who wouldn't want to print bold text in the terminal?! No, really, I don't know. I was just playing around, and was curious as to how it was done smiley

Leave a comment

(Required)
(Required)
Captcha