From 3758266eac0f84dd2e186ec884808196201f0081 Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Thu, 28 Apr 2016 01:22:15 +0200 Subject: [PATCH] Update documentation and README --- README.md | 1 + doc.go | 6 ++++++ 2 files changed, 7 insertions(+) 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