Terminal Tip: Create a text banner
Want to create a "Happy Birthday" or "Congratulations" banner? Want to skip all the "how do I get a large font to print sideways?" stuff? The command line "banner" command may help. It allows you to create a sideways message that you can open in TextEdit, print out and (with a bit of help from scissors and scotch tape) hang from the rafters. The banner command defaults to an old style text width of 132 characters, so you'll want to tell it to keep that width down to 72 or 75 if you're going to use TextEdit's default font. (You can always play with the font sizes in TextEdit and the width in the banner command if you want.) Use the -w flag to set the width and put the text you want to bannerize in a string. The bit about "open -f" pipes the results into TextEdit.
banner -w 72 "Happy 75th Birthday" | open -f
Share
Categories
Want to create a "Happy Birthday" or "Congratulations" banner? Want to skip all the "how do I get a large font to print sideways?" stuff?...
Add a Comment
If this type of thing floats your boat, you should really give figlet (http://www.figlet.org/) a try. Multiple ascii fonts.
You wouldn't want to have your old VM/CMS login without it!
Dave got it right. Now, where did I leave that continuous lineflow??
May 19 2007 at 6:56 PM Report abuse Permalink rate up rate down Reply(to Mr. E, once again)
Uh, sorry, didn't notice "image" in your question. Well, in fact you cannot generate ASCII art from image files with standard command line tools; on the other hand, there's a bunch of ASCII art converters with command line interface you'd try to compile and install on OS X. Finally, there're some samples of GUI ASCII art related software designed for Macs like free JavE 5.0 and ASCIIsee v1.0.1 shareware utility. Just try MacUpdate.com and stuff .
(to Mr. E)
Yup, for sure. Just replace 'open -f' option with 'lpr':
banner -w 72 "Happy 75th Birthday" | lpr
Can Terminal print images as well?
High quality printout indeed! Many years ago in Hong Kong, my parents had baby pictures of me and my sister printed using characters from a dot matrix printer. It was such a novelty then, I'm sure they cost something outrageous.
I am doing a study on influential bloggers on various blog sites. I have a preliminary model to study the blogging history of each blogger on a blog site and generate a list of influential bloggers. I used TUAW blog site as my experimental dataset due to its enthusiastic activity, focussed discussions and not to mention the overlap with my interests.
I am facing it hard to validate the results of the model. I think the best way to evaluate could be to ask the users (bloggers, comment-ers or readers) of TUAW blog site and have their feedback since no one would know better than the actual users at TUAW. It would be great if you could provide me top 5 members of this month whom you think might have influenced you by their blog post. I will then match these human suggested influential bloggers with those proposed by the model to analyze the accuracy.
If anyone is interested in discussing more about it then we can either discuss here or take it offline through exchange of emails. I could be reached at nagarwa6@asu.edu.
And in other news, computer users were transported back to the '80s earlier this evening...
May 18 2007 at 11:42 PM Report abuse Permalink rate up rate down Replyha. the manual page for it says "Banner prints a large, high quality banner on the standard output." ha. high quality. that's great.
May 18 2007 at 9:34 PM Report abuse Permalink rate up rate down ReplyDan Bolling, here's a terminal command just for you:
banner -w 72 "Party Pooper" | open -f
Hot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



13 Comments