phronmophobic / membrane.term

A terminal emulator in pure clojure
Eclipse Public License 1.0
53 stars 1 forks source link

Support more vt text effects #8

Open lread opened 2 years ago

lread commented 2 years ago

From #2:

In a similar vein, asciinema/vt already surfaces bold, italic, underline, blink, inverse, and strikethrough. I just implemented bold and italic (inside of emacs running in membrane.term :D), but adding some of the others might be fun at some point.

lread commented 2 years ago

Looking at SGR codes and FWIW,

Codes:

lread commented 2 years ago

So, in addition to adding support for:

We might also consider adding support for dim. We'd need to tweak our fork of asciinema/tv to do that, I think. And while we were in there we might consider having it recognize not strikeout.

phronmophobic commented 2 years ago

fwiw, I've already forked aciinema/vt

lread commented 2 years ago

Perfect!

lread commented 2 years ago

Blink and screenshot might be at odds! Just a thought. Not that anybody uses blink, more implementing for the fun of it. So maybe not worth an option to enable/disable blink.

lread commented 2 years ago

Hmmm... just testing my new script from #11 on GNOME Terminal 3.36.2 on Linux Mint and it supports more of the things.

It'll blink on code 6 (albeit no faster than it does for code 5). It hides on code 8 (and probably reveals on code 28). It does double underlines for code 21. And overlines for code 53 (and probably 55 too). And it supports changing your underline color via code 58 (and probably 59 too).

Go figure!

phronmophobic commented 2 years ago

Blink and screenshot might be at odds!

Maybe that just means we to add cli-media support so we can make gifs!