Best we can do

This commit is contained in:
Jim Nicholson 2024-02-07 16:59:29 -08:00
parent aef9f7a4c9
commit bc7f2a8540

View File

@ -1,16 +1,28 @@
void call(String stepName) { void call(String stepName) {
stepCorner = '+' red = '\033[31m'
stepBanner = "║ $stepName ║" blue = '\033[34m'
bannerWidth = stepBanner.length() - 2 normal = '\033[0m'
// banner = stepCorner + ('=' * bannerWidth) + stepCorner
stepBanner = "║ $blue$stepName$red ║"
bannerWidth = stepName.length() + 6
top = '╔' + ('═' * bannerWidth) + '╗' top = '╔' + ('═' * bannerWidth) + '╗'
bottom = '╚' + ('═' * bannerWidth) + '╝' bottom = '╚' + ('═' * bannerWidth) + '╝'
red = '\\e[31m'
normal = '\\e[0m'
ansiColor('xterm') { ansiColor('xterm') {
echo "$red$top\n$stepBanner\n$bottom$normal" echo "$red$top\n$stepBanner\n$bottom$normal"
} }
} }
// fg_black = '\x1b[30m'
// fg_red = "\x1b[31m"
// fg_green = "\x1b[32m"
// fg_yellow = "\x1b[33m"
// fg_blue = "\x1b[34m"
// fg_magenta = "\x1b[35m"
// fg_cyan = "\x1b[36m"
// fg_white = "\x1b[37m"
// fg_default = "\x1b39m"
// fg_reset = "\x1b[0m"
// //