summaryrefslogtreecommitdiff
path: root/phpdbg_help.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_help.c')
-rw-r--r--phpdbg_help.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/phpdbg_help.c b/phpdbg_help.c
index 09f16252d3..263ce6c1c9 100644
--- a/phpdbg_help.c
+++ b/phpdbg_help.c
@@ -450,6 +450,23 @@ PHPDBG_HELP(set) /* {{{ */
++set_command;
}
}
+ phpdbg_notice("Colors");
+ {
+ const phpdbg_color_t *color = phpdbg_get_colors(TSRMLS_C);
+
+ if (PHPDBG_G(flags) & PHPDBG_IS_COLOURED) {
+ phpdbg_writeln("\t%-15s\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);
+ } else phpdbg_writeln("\t%s", color->name);
+
+ ++color;
+ }
+ }
phpdbg_help_footer();
return SUCCESS;
} /* }}} */