summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorDmitry Atamanov <data-man@users.noreply.github.com>2018-01-18 20:48:59 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-01-18 18:48:59 +0100
commit7ce38122e8d0a3ce97e2720acaef8ebce2ef90ca (patch)
tree9d86e32890c4e81632fb0048889adee37fd971cd /changelog.md
parent1b3f640188b06c6b6c1ead5ab4d28345a93ace73 (diff)
downloadNim-7ce38122e8d0a3ce97e2720acaef8ebce2ef90ca.tar.gz
Support truecolor for the terminal stdlib module (#6936)
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 993923e5c..3e6597ae9 100644
--- a/changelog.md
+++ b/changelog.md
@@ -190,6 +190,31 @@ let
 
 - Added support for casting between integers of same bitsize in VM (compile time and nimscript).
   This allow to among other things to reinterpret signed integers as unsigned.
+
 - Pragmas now support call syntax, for example: ``{.exportc"myname".}`` and ``{.exportc("myname").}``
 - Custom pragmas are now supported using pragma ``pragma``, please see language manual for details
 
+- Added True Color support for some terminals
+  Example:
+```nim
+import colors, terminal
+
+const Nim = "Efficient and expressive programming."
+
+var
+  fg = colYellow
+  bg = colBlue
+  int = 1.0
+
+enableTrueColors()
+
+for i in 1..15:
+  styledEcho bgColor, bg, fgColor, fg, Nim, resetStyle
+  int -= 0.01
+  fg = intensity(fg, int)
+  
+setForegroundColor colRed
+setBackgroundColor colGreen
+styledEcho "Red on Green.", resetStyle
+```
+