green-green-avk / AnotherTerm

Local PTY, USB and Bluetooth serial ports, SSH and Telnet terminal client for Android. Xwayland support (in dev only).
https://green-green-avk.github.io/AnotherTerm-docs/
Other
190 stars 20 forks source link

Support styled and colored underlines #34

Open oblitum opened 1 year ago

oblitum commented 1 year ago

Hi, I'm not currently an AnotherTerm user, I'm currently using Termux. There's a feature I'm missing on Termux which you might be interested at implementing here, given that I see development is actually more active here than there at the moment.

See: https://github.com/termux/termux-app/issues/870

oblitum commented 1 year ago

I'm not sure whether AnotherTerm already supports custom fonts, Termux does, and I rely on it for having Nerd Fonts with Powerline glyphs. Sadly Termux doesn't support specific fonts for italic, etc, I can only set one regular font and bold/italic is done automatically, from what I can tell from AnotherTerm's codebase, it seems it's possible to set custom fonts, specific for bold and italic, besides the regular one?

green-green-avk commented 1 year ago

It is from the kitty's Terminal protocol extensions. Why not to add? It will be done.

At the moment, you can also try this trick though:

echo -e '\e[97mX\e[1;31m\xE1\xAA\xB6\e[0m'

It uses the ability to set separate colors of the combining glyphs. (Another Term only, it seems...) The combining glyph here is U+1AB6.

oblitum commented 1 year ago

Eager to try your impl when it's done.