[Gambas-bugtracker] Bug #2840: toansi in texthilighter turns on underline after first keyword

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Dec 10 22:33:53 CET 2023


http://gambaswiki.org/bugtracker/edit?object=BUG.2840&from=L21haW4-

Comment #1 by Brian G:

Ok, did some investigation

you are sending \e[21m to try to turn off the bold, But this is a newer usage, the older usage was double underline
which is what is happening on the failing consoles.
 \e[22m does normal intensity on all terminal types.

21 | Doubly underlined; or: not bold	Double-underline per ECMA-48,[5]: 8.3.117  
                                        but instead disables bold intensity on several terminals, including in the Linux kernel's console before version 4.17.[3

can you update toansi to check the terminal type or just not put out the \s[21m as you are already putting out the correct \e[22m which works on all terminal

Brian G changed the state of the bug to: Opened.




More information about the Bugtracker mailing list