Skip to main content

Print your text surrounded by a frame (box) in a terminal (Bash and Powershell examples)

If you want to draw a box (a simple frame that is using only symbol characters |, = and /) around your text in a terminal output, you can use the following Bash function, that also allows you to use different colors:

And in Windows Powershell you can use the following function: