atomontage / xterm-color

ANSI & xterm-256 color text property translator for Emacs
BSD 2-Clause "Simplified" License
214 stars 20 forks source link

support v2.wttr.in output #36

Closed luogni closed 4 years ago

luogni commented 4 years ago

Hi, I'm trying to use xterm-color to display http://v2.wttr.in/ but it doesn't seem to support all codes and the output is not perfect.

I'm testing with:

(insert (xterm-color-filter (shell-command-to-string "curl -s v2.wttr.in/?0")))
atomontage commented 4 years ago

Try d53a39a5af72cd340ebf686e59a37289b4cb6e8c, I quickly added support for \<ESC>(B that this output needs.

This is what it looks like here with PragmataPro:

shot

The cloud row misalignment is not related to xterm-color since no ANSI sequences are present there, but looks to be a graphical Emacs Unicode font handling/rendering issue. If you run Emacs in terminal mode, rendering is correct:

shot2