From e0c4922635adf1385c7e4263c05df9ce58dd6a4a Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sun, 24 Nov 2013 20:59:22 +0000 Subject: [PATCH] blink/underline --- phpdbg_help.c | 4 ++-- phpdbg_utils.c | 49 ++++++++++++++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/phpdbg_help.c b/phpdbg_help.c index fa5741b911..f233d9005e 100644 --- a/phpdbg_help.c +++ b/phpdbg_help.c @@ -455,13 +455,13 @@ PHPDBG_HELP(set) /* {{{ */ const phpdbg_color_t *color = phpdbg_get_colors(TSRMLS_C); if (PHPDBG_G(flags) & PHPDBG_IS_COLOURED) { - phpdbg_writeln("\t%-15s\t\tExample", "Name"); + phpdbg_writeln("\t%-20s\t\tExample", "Name"); } else phpdbg_writeln("\tName"); while (color && color->name) { if (PHPDBG_G(flags) & PHPDBG_IS_COLOURED) { phpdbg_writeln( - "\t%-15s\t\t\033[%smphpdbg rocks :)\033[0m", color->name, color->code); + "\t%-20s\t\t\033[%smphpdbg rocks :)\033[0m", color->name, color->code); } else phpdbg_writeln("\t%s", color->name); ++color; diff --git a/phpdbg_utils.c b/phpdbg_utils.c index d3d8777913..59c920d63a 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -36,23 +36,38 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg); const static phpdbg_color_t colors[] = { PHPDBG_COLOR_D("none", "0;0"), - PHPDBG_COLOR_D("white", "0;64"), - PHPDBG_COLOR_D("white-bold", "1;64"), - PHPDBG_COLOR_D("red", "0;31"), - PHPDBG_COLOR_D("red-bold", "1;31"), - PHPDBG_COLOR_D("green", "0;32"), - PHPDBG_COLOR_D("green-bold", "1;32"), - PHPDBG_COLOR_D("yellow", "0;33"), - PHPDBG_COLOR_D("yellow-bold", "1;33"), - PHPDBG_COLOR_D("blue", "0;34"), - PHPDBG_COLOR_D("blue-bold", "1;34"), - PHPDBG_COLOR_D("purple", "0;35"), - PHPDBG_COLOR_D("purple-bold", "1;35"), - PHPDBG_COLOR_D("cyan", "0;36"), - PHPDBG_COLOR_D("cyan-bold", "1;36"), - PHPDBG_COLOR_D("black", "0;30"), - PHPDBG_COLOR_D("black-bold", "1;30"), - + PHPDBG_COLOR_D("white", "0;64"), + PHPDBG_COLOR_D("white-bold", "1;64"), + PHPDBG_COLOR_D("white-underline", "4;64"), + PHPDBG_COLOR_D("white-blink", "5;64"), + PHPDBG_COLOR_D("red", "0;31"), + PHPDBG_COLOR_D("red-bold", "1;31"), + PHPDBG_COLOR_D("red-underline", "4;31"), + PHPDBG_COLOR_D("red-blink", "5;31"), + PHPDBG_COLOR_D("green", "0;32"), + PHPDBG_COLOR_D("green-bold", "1;32"), + PHPDBG_COLOR_D("green-underline", "4;32"), + PHPDBG_COLOR_D("green-blink", "5;32"), + PHPDBG_COLOR_D("yellow", "0;33"), + PHPDBG_COLOR_D("yellow-bold", "1;33"), + PHPDBG_COLOR_D("yellow-underline", "4;33"), + PHPDBG_COLOR_D("yellow-blink", "5;33"), + PHPDBG_COLOR_D("blue", "0;34"), + PHPDBG_COLOR_D("blue-bold", "1;34"), + PHPDBG_COLOR_D("blue-underline", "4;34"), + PHPDBG_COLOR_D("blue-blink", "5;34"), + PHPDBG_COLOR_D("purple", "0;35"), + PHPDBG_COLOR_D("purple-bold", "1;35"), + PHPDBG_COLOR_D("purple-underline", "4;35"), + PHPDBG_COLOR_D("purple-blink", "5;35"), + PHPDBG_COLOR_D("cyan", "0;36"), + PHPDBG_COLOR_D("cyan-bold", "1;36"), + PHPDBG_COLOR_D("cyan-underline", "4;36"), + PHPDBG_COLOR_D("cyan-blink", "5;36"), + PHPDBG_COLOR_D("black", "0;30"), + PHPDBG_COLOR_D("black-bold", "1;30"), + PHPDBG_COLOR_D("black-underline", "4;30"), + PHPDBG_COLOR_D("black-blink", "5;30"), PHPDBG_COLOR_END }; /* }}} */ -- 2.40.0