Terminal that supports the ANSI italic escape code?

15

2

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics.

Vim allows setting an ANSI escape code for italics (\e[3m), but this does not work in Gnome Terminal. Is there a terminal emulator that supports the ANSI escape code for italics?

Ton van den Heuvel

Posted 2010-10-29T11:25:30.887

Reputation: 3 316

Are you certain that this is an official ANSI escape code? – Thorbjørn Ravn Andersen – 2010-10-29T11:36:53.260

No, I'm not :) Some sources mention it as a valid code though, e.g. http://en.wikipedia.org/wiki/ANSI_escape_code

– Ton van den Heuvel – 2010-10-29T11:43:42.297

1That Wikipedia page shows \e[3m (3 rather than 2) which agrees with tput -T rxvt-unicode sitm|hexdump -C. – Paused until further notice. – 2010-10-29T18:55:40.830

Answers

14

I've tested a number of terminal emulators with echo -e "\e[3mfoo\e[23m" as suggested here. I went through the Arch wiki list, testing emulators in the official repositories.

Support italics

  • konsole 15.04.3
  • rxvt-unicode 9.21
  • tilda 1.2.4
  • xterm 318
  • gnome-terminal 3.16.2
  • pantheon-terminal 0.3.1.1
  • yakuake 2.9.9
  • roxterm 3.1.3
  • sakura 3.3.0
  • termite 10
  • mlterm 3.3.8
  • terminix 1.0.0
  • terminator 1.91
  • xfce4-terminal 0.8.5.1

Do not support italics

  • guake 0.7.2
  • lxterminal 0.2.0
  • rxvt 2.7.10
  • terminology 0.8.0
  • lilyterm 0.9.9.2
  • mate-terminal 1.10.1
  • xfce4-terminal 0.6.3
  • KiTTY 0.64.0.4
  • PuTTY 0.65 Beta

Sparhawk

Posted 2010-10-29T11:25:30.887

Reputation: 1 201

1

Note that many terminal emulators are based on the VTE terminal emulator library. vte2 (for gtk 2) is obsolete now, only those emulators based on the current vte3 implementation (e.g. gnome-terminal). For guake, gtk3 bindings and hence italics support, are targeted for milestone 0.8.4

– kba stands with Monica – 2016-02-15T13:54:24.343

1@kba Yes, good point. My terminal of choice, terminator, is supporting italics in the development version, which is based on vte3. – Sparhawk – 2016-02-15T21:38:09.460

9

GNOME Terminal (3.6.1) supports italics via \e[3m.

osirisgothra

Posted 2010-10-29T11:25:30.887

Reputation: 331

6

ak2

Posted 2010-10-29T11:25:30.887

Reputation: 3 387