diff --git a/changelog.md b/changelog.md index ae52dda6..7dda7f65 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,11 @@ Upcoming (TBD) ============== +Documentation +--------- +* Give example for ANSI prompt colors in `~/.myclirc`. + + Internal --------- * Remove unused fixture data. diff --git a/mycli/myclirc b/mycli/myclirc index 3aa35189..61d027bb 100644 --- a/mycli/myclirc +++ b/mycli/myclirc @@ -136,7 +136,8 @@ wider_completion_menu = False # * \n - a newline # * \_ - a space # * \\ - a literal backslash -# * \x1b[...m - an ANSI escape sequence (can style with color) +# * \x1b[...m - an ANSI escape sequence (can style with color or attributes) +# ANSI color example: prompt = '\x1b[31mroot\x1b[0m@localhost:\d> ' prompt = '\t \u@\h:\d> ' prompt_continuation = '->' diff --git a/test/myclirc b/test/myclirc index 811c51d2..15fb4547 100644 --- a/test/myclirc +++ b/test/myclirc @@ -134,7 +134,8 @@ wider_completion_menu = False # * \n - a newline # * \_ - a space # * \\ - a literal backslash -# * \x1b[...m - an ANSI escape sequence (can style with color) +# * \x1b[...m - an ANSI escape sequence (can style with color or attributes) +# ANSI color example: prompt = '\x1b[31mroot\x1b[0m@localhost:\d> ' prompt = "\t \u@\h:\d> " prompt_continuation = ->