iTerm does not set the TERM variable. The TERM variable is set by the
shell run by iTerm. Somewhere (/etc/profile, /etc/bashrc, ~/.bashrc,
~/.profile, ~/.bashrc, ~/.zshrc, etc.) you are saying
export TERM=xterm-256color-italic
TERM is being copied by ssh between the two systems (apparently it is
immune to the SendEnv/AcceptEnv stuff).
A quick look at Vagrant shows that there is a bootstrap.sh file that
lives next to Vagrant file. This is the appropriate place to add the
code to teach the box you are provisioning how to handle italics. You
should be able to say something like
termfile=xterm-256color-italic.terminfo
cat <<eof > $termfile
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
xterm-256color-italic|xterm with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,
eof
tic $termfile
And everything should just work (note: the code above is untested).
--
Chas. Owens
http://github.com/cowens
The most important skill a programmer can have is the ability to read.