icewolfz / jiMUD

MUD client for ShadowMUD.com using electron
http://www.shadowmud.com
7 stars 0 forks source link

Display: Add ansi escape code for colored and styled underlines #199

Open icewolfz opened 1 year ago

icewolfz commented 1 year ago

This is possible using the css text-decoration-color property, but requires recoding the parser and expanding the format data type to track underline color as a separate property

icewolfz commented 1 year ago

see https://en.wikipedia.org/wiki/ANSI_escape_code

icewolfz commented 1 year ago

css color effects all styles, overline, underline, and strike though so if a block has all effects all of it would be colored but for the 2nd double underline as that is a custom border as text-decoration-style can no be used for the same reason color may not be able to, unless i allow this to effect all 3 and double underline

icewolfz commented 1 year ago

see https://sw.kovidgoyal.net/kitty/underlines/ for more