unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to enable italic font in terminal emacs?
@ 2017-07-25 11:36 Shiyao MA
  2017-07-25 12:22 ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Shiyao MA @ 2017-07-25 11:36 UTC (permalink / raw)
  To: help-gnu-emacs

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,


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to enable italic font in terminal emacs?
  2017-07-25 11:36 how to enable italic font in terminal emacs? Shiyao MA
@ 2017-07-25 12:22 ` tomas
  2017-07-25 13:42   ` Gregor Zattler
  0 siblings, 1 reply; 4+ messages in thread
From: tomas @ 2017-07-25 12:22 UTC (permalink / raw)
  To: help-gnu-emacs

-----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-----



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to enable italic font in terminal emacs?
  2017-07-25 12:22 ` tomas
@ 2017-07-25 13:42   ` Gregor Zattler
  2017-07-25 19:29     ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Gregor Zattler @ 2017-07-25 13:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Tomas,
* tomas@tuxteam.de <tomas@tuxteam.de> [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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to enable italic font in terminal emacs?
  2017-07-25 13:42   ` Gregor Zattler
@ 2017-07-25 19:29     ` tomas
  0 siblings, 0 replies; 4+ messages in thread
From: tomas @ 2017-07-25 19:29 UTC (permalink / raw)
  To: help-gnu-emacs

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

On Tue, Jul 25, 2017 at 03:42:29PM +0200, Gregor Zattler wrote:
> Hi Tomas,
> * tomas@tuxteam.de <tomas@tuxteam.de> [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-----



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-25 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-25 11:36 how to enable italic font in terminal emacs? Shiyao MA
2017-07-25 12:22 ` tomas
2017-07-25 13:42   ` Gregor Zattler
2017-07-25 19:29     ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).