Hacker News new | past | comments | ask | show | jobs | submit login

At its simplest, manage screen state yourself and redraw it by moving the cursor and colouring with ANSI codes:

https://gist.github.com/fnky/458719343aabd01cfb17a3a4f729679...

Turning the cursor on and off, 24 bit color, etc. A lot is possible though you potential sacrifice portability (which in 2021 translates to “don’t expect your stuff to render properly if your at the Linux console, and everywhere else it is fine.”)




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: