how to enable italic font in terminal emacs?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to enable italic font in terminal emacs?

Shiyao Ma
Hi,

I am using iterm2 + tmux.

The term supports italic font,  for example:
printf "\e[3;4;33mthis is a test\n\e[0m"

it prints out italic text in the shell running in iterm2+ tmux.


However, in terminal emacs, I cannot get italic font.

For example, in orgmode with the text:
/my-italic-text/
it simply doesn't become italic.


Best,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to enable italic font in terminal emacs?

Tomas Zerolo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jul 25, 2017 at 04:36:05AM -0700, Shiyao MA wrote:

> Hi,
>
> I am using iterm2 + tmux.
>
> The term supports italic font,  for example:
> printf "\e[3;4;33mthis is a test\n\e[0m"
>
> it prints out italic text in the shell running in iterm2+ tmux.
>
>
> However, in terminal emacs, I cannot get italic font.
>
> For example, in orgmode with the text:
> /my-italic-text/
> it simply doesn't become italic.

This seems relevant:

  <https://unix.stackexchange.com/questions/17680/italics-in-emacs-on-a-text-terminal-rxvt-unicode>

In short: for a sufficiently recent Emacs, it Just Works :)
(I tested it on "my" Emacs, which is GNU Emacs 26.0.50 (build 1,
x86_64-pc-linux-gnu, GTK+ Version 2.24.29) of 2017-07-25; I do
build from sources), and it actually works, on a plain Xterm.

I don't know at which version the patch got in, sorry.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAll3N/4ACgkQBcgs9XrR2kZNlQCffw+kXMZiNHeZiP5M2/SZFxvN
7nsAn28aknkPwBuiRO8w8FOl2iazEXyA
=y5L7
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to enable italic font in terminal emacs?

Gregor Zattler
Hi Tomas,
* [hidden email] <[hidden email]> [25. Jul. 2017]:
> On Tue, Jul 25, 2017 at 04:36:05AM -0700, Shiyao MA wrote:
>> I am using iterm2 + tmux.

Perhaps this helps:
https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/

[...]
> I don't know at which version the patch got in, sorry.

Emacs supports italics on text terminals since round about
version 24.1 in beginning of 2012.

Now it also does so with screen (1) (atm unreleased) master since
2017-07-09.

HTH, gregor



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to enable italic font in terminal emacs?

Tomas Zerolo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jul 25, 2017 at 03:42:29PM +0200, Gregor Zattler wrote:

> Hi Tomas,
> * [hidden email] <[hidden email]> [25. Jul. 2017]:
> > On Tue, Jul 25, 2017 at 04:36:05AM -0700, Shiyao MA wrote:
> >> I am using iterm2 + tmux.
>
> Perhaps this helps:
> https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/
>
> [...]
> > I don't know at which version the patch got in, sorry.
>
> Emacs supports italics on text terminals since round about
> version 24.1 in beginning of 2012.
>
> Now it also does so with screen (1) (atm unreleased) master since
> 2017-07-09.

Thanks :-)

- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEUEARECAAYFAll3nBMACgkQBcgs9XrR2kazsQCXcK8rUEHlLDfjEoBbeRSe2SBl
KgCfavYZNhrwmUC9Zy6EdkpVFy1/eS0=
=+kyF
-----END PGP SIGNATURE-----

Loading...