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

> as long you can display unicodes

On Linux, virtual terminals are currently limited to 512 glyphs and 16 colors. You can't do much graphics with that, unless you bypass the terminal layer and write directly to the framebuffer, like w3mimg does.



VT's but not XTerms. Also, framebuffer based VT's allow 256 colors with ease.

On the font issue, yes, sadly you are right. It's retarded to just have 512 glyphs on a framebuffer, not a true tty. The framebuffer or KMS should support TTF fonts by default. A Unifont TTF would be godsend here.


Since Linux v3.16, the vt driver recognizes 256-color and even 24-bit escape sequences, but it maps the colors to the 16-color palette:

https://git.kernel.org/linus/cec5b2a97a11ade5


I should have been clearer: as long as you have a font which has entries for the glyphs used by derasterize and sixel-tmux - check the source and you'll see you don't need a lot of them.




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

Search: