diff --git a/README.md b/README.md index 180f949..7662c11 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Minimalist Go package aimed at creating Console User Interfaces. * The GUI can be modified at runtime (concurrent-safe). * Global and view-level keybindings. * Mouse support. +* Colored text. * Customizable edition mode. ## Installation diff --git a/doc.go b/doc.go index 8f7da56..796d725 100644 --- a/doc.go +++ b/doc.go @@ -105,6 +105,12 @@ DefaultEditor can be taken as example to create your own custom Editor: } } +Colored text: + +Views allow to add colored text using ANSI colors. For example: + + fmt.Fprintln(v, "\x1b[0;31mHello world") + For more information, see the examples in folder "_examples/". */ package gocui