Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The majority of these escape codes start with \x1b[

This is actually the 7-bit version for CSI. A less known variation is the 8-bit CSI which is simply \x9b and is the same as \x1b[ combined. So, for example \x9b33m does the same as \x1b[33m .

Unfortunately, there exist a couple of (8-bit) terminals that don't support this version.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: