lxde / lxterminal

VTE terminal emulator written in GTK
GNU General Public License v2.0
159 stars 55 forks source link

Displaying cursive (italic) text does not work #116

Closed mutluit closed 1 year ago

mutluit commented 1 year ago

Displaying cursive text in lxterminal by using italic escape sequence unfortunately does not work.

OS is Debian 11 (bullseye). $ dpkg -l | grep -i lxterminal ii lxterminal 0.4.0-1 amd64 LXDE terminal emulator

See also list of terminals that support the italic escape code: https://code911.top/howto/terminal-that-supports-the-ansi-italic-escape-code

mutluit commented 1 year ago

From:

To: ...

Cc: lxde-list@lists.sourceforge.net

Date: Tue, 8 Aug 2023 12:38:16 +0200

Subject: Re: [Lxde-list] Cursive (ie. italic) text in lxterminal

New insights / FIX:

It seems to be a bug related to the "screen" program (running in lxterminal).

When printing the following in a non-"screen" terminal window then it works : $ printf "\e[3mitalic\e[0m\n"

Not sure whether the following TERM setting is correct as I once had xterm installed too, but xterm is not installed anymore:

$ echo $TERM xterm-256color

In screen this becomes: $ echo $TERM screen.xterm-256color

ib commented 1 year ago

xterm-256color is okay, that's the usual value. It expresses that lxterminal has the capabilities of an xterm with 256 colors.

These capabilities are defined (compiled) in /lib/terminfo/x/xterm-256color. screen.xterm-256color is defined in /lib/terminfo/s/screen.xterm-256color.

It seems that screen.xterm-256color can't display italic text. It displays reverse text instead.

mutluit commented 1 year ago

Closing issue as it works in native lxterminal. The issue is then with the "screen" program, not lxterminal.