tic doesn't read from STDIN and segfaults when adding terminfo to support italics in tmux I'm trying to follow these instructions to add italics support to tmux.  

1) I tried running copying-pasting and running this command

cat &lt;&lt;EOF|tic -x -
    tmux|tmux terminal multiplexer,
        ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
        use=xterm+tmux, use=screen,

    tmux-256color|tmux with 256 colors,
        use=xterm+256setaf, use=tmux,


but that gives me:

tic: Can't open -


I'm guessing this is because OS X's tic doesn't support reading from stdin. 

2) I then tried saving the terminfo to a temporary file named tmux.terminfo and ran it using tic -x tmux.terminfo

tmux|tmux terminal multiplexer,
    ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
    use=xterm+tmux, use=screen,

tmux-256color|tmux with 256 colors,
    use=xterm+256setaf, use=tmux,


However, I get this error message  

[1]    32091 segmentation fault  tic -x tmux.terminfo


3) I also tried running tic without the -x flag, so that it doesn't treat unknown capabilities as user-defined.

That gives me this:

"tmux.terminfo", line 2, col 62, terminal 'tmux': unknown capability 'Ms'
[1]    35607 segmentation fault  tic tmux.terminfo


I'm on OS X 10.11.6.
So this works for me, notice I edited use like @mtklr suggested:

# A screen-256color based TERMINFO that adds the escape sequences for italic.
# run to add to term db: tic tmux.terminfo
tmux|tmux terminal multiplexer,
  ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
  use=xterm, use=screen,

tmux-256color|tmux with 256 colors,
  use=xterm-256color, use=tmux,


Then tic -x tmux.terminfo

Shouldn't have errors

Then added to .tmux.conf:

set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'