From 7ce38122e8d0a3ce97e2720acaef8ebce2ef90ca Mon Sep 17 00:00:00 2001 From: Dmitry Atamanov Date: Thu, 18 Jan 2018 20:48:59 +0300 Subject: Support truecolor for the terminal stdlib module (#6936) --- changelog.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'changelog.md') 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 +``` + -- cgit 1.4.1-2-gfad0