aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reline/face.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reline/face.md')
-rw-r--r--doc/reline/face.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/reline/face.md b/doc/reline/face.md
index cf3bb69440..1fa916123b 100644
--- a/doc/reline/face.md
+++ b/doc/reline/face.md
@@ -102,7 +102,10 @@ irb(main):001:0> Reline::Face.configs
:scrollbar=>{:foreground=>:white, :background=>:cyan, :escape_sequence=>"\e[0m\e[37;46m"}}}
```
-## Backlog
-
-- Support for 256-color terminal emulator. Fallback hex color code such as "#FF1020" to 256 colors
+## 256-Color and TrueColor
+Reline will automatically detect if your terminal emulator supports truecolor with `ENV['COLORTERM] in 'truecolor' | '24bit'`. When this env is not set, Reline will fallback to 256-color.
+If your terminal emulator supports truecolor but does not set COLORTERM env, add this line to `.irbrc`.
+```ruby
+Reline::Face.force_truecolor
+```