As a final tweak, I moved from 8 bit ansi colors like \x1b[38:5:161m to 4 bit colors like \x1b[31m. This restricts our color range, but it saves something like 6 bytes per color.
Why You Need These AI Tools in 2025
,这一点在搜狗输入法2026中也有详细论述
The way color works in the terminal is that you echo a sequence like \x1b[38:5:161m to tell the terminal “use color 161 (red) for the foreground.” Then all characters have a foreground color of 161 until you “reset” by sending the sequence \x1b[0m.
오늘 6시 이준석·전한길 토론…全측 “5시간 전에 경찰 출석해야”
美國嚴厲打擊非法移民下,中國「走線」客正遭遇的抓捕與擔憂