Skip to content

Instantly share code, notes, and snippets.

@kepbod
Last active May 17, 2025 18:19
use italics in iterm2
{ infocmp -1 xterm-256color ; echo "\tsitm=\\E[3m,\n\tritm=\\E[23m,"; } > /tmp/xterm-256color.terminfo
tic /tmp/xterm-256color.terminfo
@insubnia
Copy link

It's simple and awesome compared to other solutions!!! thanks a lot!!

Uh oh!

There was an error while loading. Please reload this page.

@ramzihizi
Copy link

how do I use this?
Thank You!

@kepbod
Copy link
Author

kepbod commented Sep 26, 2019

Simply copy these commands to your terminal and it will work. :)

@brandon1024
Copy link

Thanks for this! I've seen a lot of people online create a whole new terminal profile (e.g. xterm-256color-italic), but I prefer just updating the existing one.

This didn't work without a few changes though. The echo here doesn't format correctly. This worked:

echo -e "\tsitm=\\\E[3m,\n\tritm=\\\E[23m,"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment