Boxen allows you draw a stroke line box around the text that you print on the terminal/console.
-
First, import the
jeradrutnam/boxen
package into the Ballerina project.import jeradrutnam/boxen;
-
Then simply use it as below.
function main(string... args){ boxen:Boxen boxen = new(); string boxedText = boxen.write("Hello world!"); io:println(boxedText); }
-
Go to the terminal/console and run the file.
ballerina run <filename>.bal
Licenses this source under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.