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



U.Mutlu wrote on 08/08/23 10:59:
That's interessting.
Which OS, desktop, and version of lxterminal do you use?

Btw, as was suggested, I've opened a project issue entry at github:
https://github.com/lxde/lxterminal/issues/116


bill-auger wrote on 08/08/23 06:39:
On Mon, 7 Aug 2023 11:18:30 +0200 U.Mutlu wrote:
void printf_test()
    {
      printf("\e[1mbold\e[0m\n");
      printf("\e[3mitalic\e[0m\n");

i could not reproduce the unexpected behavior - perhaps something (terminfo?)
is over-ridden? - perhaps certain fonts or WMs are incompatible?

can anyone else confirm the unexpected behavior? - those `printf` commands work
as expected on my system, in both C and BASH

$ printf "\e[1mbold\e[0m\n"
$ printf "\e[3mitalic\e[0m\n"
$ printf "\e[3m\e[1mbold italic\e[0m\n"
$ printf "\e[4munderline\e[0m\n"
$ printf "\e[9mstrikethrough\e[0m\n"
$ printf "\e[31mHello World\e[0m\n"
$ printf "\x1B[31mHello World\e[0m\n"




_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to