Update of /cvsroot/tmux/tmux
In directory vz-cvs-2.sog:/tmp/cvs-serv7944
Modified Files:
configure.ac tmux.h tty-term.c tty.c
Log Message:
If the terminal supports sitm for italics, use it instead of standout
(smso). From Tiago Resende.
Index: tty.c
===================================================================
RCS file: /cvsroot/tmux/tmux/tty.c,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -d -r1.207 -r1.208
--- tty.c 6 Apr 2011 22:18:05 -0000 1.207
+++ tty.c 9 Apr 2011 07:48:58 -0000 1.208
@@ -1218,7 +1218,12 @@
if (changed & GRID_ATTR_DIM)
tty_putcode(tty, TTYC_DIM);
if (changed & GRID_ATTR_ITALICS)
- tty_putcode(tty, TTYC_SMSO);
+ {
+ if (tty_term_has(tty->term, TTYC_SITM))
+ tty_putcode(tty, TTYC_SITM);
+ else
+ tty_putcode(tty, TTYC_SMSO);
+ }
if (changed & GRID_ATTR_UNDERSCORE)
tty_putcode(tty, TTYC_SMUL);
if (changed & GRID_ATTR_BLINK)
Index: configure.ac
===================================================================
RCS file: /cvsroot/tmux/tmux/configure.ac,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- configure.ac 11 Feb 2011 23:31:15 -0000 1.15
+++ configure.ac 9 Apr 2011 07:48:58 -0000 1.16
@@ -101,7 +101,7 @@
AC_CHECK_LIB(rt, clock_gettime)
# Look for libevent.
-AC_SEARCH_LIBS(event_init, event, found_libevent=yes, found_libevent=no)
+AC_SEARCH_LIBS(event_init, [event event-1.4 event2], found_libevent=yes,
found_libevent=no)
if test "x$found_libevent" = xno; then
AC_MSG_ERROR("libevent not found")
fi
Index: tty-term.c
===================================================================
RCS file: /cvsroot/tmux/tmux/tty-term.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- tty-term.c 15 Feb 2011 15:12:28 -0000 1.46
+++ tty-term.c 9 Apr 2011 07:48:58 -0000 1.47
@@ -181,6 +181,7 @@
{ TTYC_SMKX, TTYCODE_STRING, "smkx" },
{ TTYC_SMSO, TTYCODE_STRING, "smso" },
{ TTYC_SMUL, TTYCODE_STRING, "smul" },
+ { TTYC_SITM, TTYCODE_STRING, "sitm" },
{ TTYC_VPA, TTYCODE_STRING, "vpa" },
{ TTYC_XENL, TTYCODE_FLAG, "xenl" },
};
Index: tmux.h
===================================================================
RCS file: /cvsroot/tmux/tmux/tmux.h,v
retrieving revision 1.618
retrieving revision 1.619
diff -u -d -r1.618 -r1.619
--- tmux.h 6 Apr 2011 22:29:26 -0000 1.618
+++ tmux.h 9 Apr 2011 07:48:58 -0000 1.619
@@ -319,6 +319,7 @@
TTYC_SMKX, /* keypad_xmit, ks */
TTYC_SMSO, /* enter_standout_mode, so */
TTYC_SMUL, /* enter_underline_mode, us */
+ TTYC_SITM, /* enter_italics_mode, it */
TTYC_VPA, /* row_address, cv */
TTYC_XENL, /* eat_newline_glitch, xn */
};
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs