FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Console Pretty

v0.2.5 Public

CommandBox Console Pretty

Simple module to draw bordered message boxes to the console (Supports emoji!!)


CommandBox> install ConsolePretty


getInstance( "[email protected]" ).printMessageBox( message );

ConsolePretty is a threadsafe singleton and suitable for injection. Inject the library like so:

component {
  property name="ConsolePretty" inject="[email protected];
  function run() {
    ConsolePretty.printMessageBox( "🦄   Welcome to my pretty box  🦄 " )


  • message: String or array of strings to print inside the box. Word wrapping is on by default. If an array of strings, each item in the array will be a separate line (hint: even empty strings ). Can use some emojis (depending on terminal shell support, but mostly these are good:
  • border: Character(s) to use to draw the box. Defaults to "🔥 ". Can be pretty much any printable character supported by your terminal - results may vary.
  • color: Color of text inside the box. Defaults to "white"
  • borderColor: Color of border characters. Defaults to "red"
  • wordwrap: If true, will wrap at 80 characters (or whatever columns is set to. Defaults to true.
  • columns: Number of characters to print before wrapping. Defaults to 80.

Dependencies (0)

Dev Dependencies (0)

Install this module and inject it into your command/task/module CFC. Then call it like ConsolePretty.printMessageBox( message )


$ box install ConsolePretty

No collaborators yet.
  • {{ getFullDate("Jan 31 2020 03:01 PM GMT") }}
  • {{ getFullDate("Jan 31 2020 03:01 PM GMT") }}
  • 822
  • 0
  • 570