From 40cc08c123214c234db5275c5662b4b9b2c7ead9 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Wed, 7 Feb 2024 14:40:37 -0800 Subject: [PATCH] Try using some ansi --- vars/printBanner.groovy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vars/printBanner.groovy b/vars/printBanner.groovy index 0de64d9..71bade7 100644 --- a/vars/printBanner.groovy +++ b/vars/printBanner.groovy @@ -1,8 +1,13 @@ void call(String stepName) { stepCorner = '+' - stepBanner = "| $stepName |" + stepBanner = "║ $stepName ║" bannerWidth = stepBanner.length() - 2 - banner = stepCorner + ('=' * bannerWidth) + stepCorner + // banner = stepCorner + ('=' * bannerWidth) + stepCorner - echo "$banner\n$stepBanner\n$banner" + top = '╔' + ('═' * bannerWidth) + '╗' + bottom = '╚' + ('═' * bannerWidth) + '╝' + + echo "$top\n$stepBanner\n$bottom" } + +// ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬