|
Karsten Hopp |
127748 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
127748 |
Subject: Patch 7.4.766
|
|
Karsten Hopp |
127748 |
Fcc: outbox
|
|
Karsten Hopp |
127748 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
127748 |
Mime-Version: 1.0
|
|
Karsten Hopp |
127748 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
127748 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
127748 |
------------
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
Patch 7.4.766 (after 7.4.757)
|
|
Karsten Hopp |
127748 |
Problem: Background color check does not work on Tera Term.
|
|
Karsten Hopp |
127748 |
Solution: Also recognize ST as a termination character. (Hirohito Higashi)
|
|
Karsten Hopp |
127748 |
Files: src/term.c
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
*** ../vim-7.4.765/src/term.c 2015-06-27 18:34:19.503618396 +0200
|
|
Karsten Hopp |
127748 |
--- src/term.c 2015-07-03 12:49:14.224448432 +0200
|
|
Karsten Hopp |
127748 |
***************
|
|
Karsten Hopp |
127748 |
*** 4264,4270 ****
|
|
Karsten Hopp |
127748 |
*
|
|
Karsten Hopp |
127748 |
* - Background color response:
|
|
Karsten Hopp |
127748 |
* <Esc>]11;rgb:{rrrr}/{gggg}/{bbbb}\007
|
|
Karsten Hopp |
127748 |
! * The final byte must be '\007'.
|
|
Karsten Hopp |
127748 |
*/
|
|
Karsten Hopp |
127748 |
char_u *argp = tp[0] == CSI ? tp + 1 : tp + 2;
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
--- 4264,4272 ----
|
|
Karsten Hopp |
127748 |
*
|
|
Karsten Hopp |
127748 |
* - Background color response:
|
|
Karsten Hopp |
127748 |
* <Esc>]11;rgb:{rrrr}/{gggg}/{bbbb}\007
|
|
Karsten Hopp |
127748 |
! * Or
|
|
Karsten Hopp |
127748 |
! * <Esc>]11;rgb:{rrrr}/{gggg}/{bbbb}ST
|
|
Karsten Hopp |
127748 |
! * The final byte must be '\007' or ST(0x9c or ESC\).
|
|
Karsten Hopp |
127748 |
*/
|
|
Karsten Hopp |
127748 |
char_u *argp = tp[0] == CSI ? tp + 1 : tp + 2;
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
***************
|
|
Karsten Hopp |
127748 |
*** 4408,4419 ****
|
|
Karsten Hopp |
127748 |
key_name[1] = (int)KE_IGNORE;
|
|
Karsten Hopp |
127748 |
slen = i + 1;
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
! else if (*T_RBG != NUL && len >= 24 - (tp[0] == CSI)
|
|
Karsten Hopp |
127748 |
&& argp[0] == '1' && argp[1] == '1'
|
|
Karsten Hopp |
127748 |
&& argp[2] == ';' && argp[3] == 'r' && argp[4] == 'g'
|
|
Karsten Hopp |
127748 |
&& argp[5] == 'b' && argp[6] == ':'
|
|
Karsten Hopp |
127748 |
&& argp[11] == '/' && argp[16] == '/'
|
|
Karsten Hopp |
127748 |
! && argp[21] == '\007')
|
|
Karsten Hopp |
127748 |
{
|
|
Karsten Hopp |
127748 |
LOG_TR("Received RBG");
|
|
Karsten Hopp |
127748 |
rbg_status = RBG_GOT;
|
|
Karsten Hopp |
127748 |
--- 4410,4424 ----
|
|
Karsten Hopp |
127748 |
key_name[1] = (int)KE_IGNORE;
|
|
Karsten Hopp |
127748 |
slen = i + 1;
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
! else if (*T_RBG != NUL
|
|
Karsten Hopp |
127748 |
! && len >= 24 - (tp[0] == CSI)
|
|
Karsten Hopp |
127748 |
! && len >= 24 - (tp[0] == CSI) + (argp[21] == ESC)
|
|
Karsten Hopp |
127748 |
&& argp[0] == '1' && argp[1] == '1'
|
|
Karsten Hopp |
127748 |
&& argp[2] == ';' && argp[3] == 'r' && argp[4] == 'g'
|
|
Karsten Hopp |
127748 |
&& argp[5] == 'b' && argp[6] == ':'
|
|
Karsten Hopp |
127748 |
&& argp[11] == '/' && argp[16] == '/'
|
|
Karsten Hopp |
127748 |
! && (argp[21] == '\007' || argp[21] == STERM
|
|
Karsten Hopp |
127748 |
! || (argp[21] == ESC && argp[22] == '\\')))
|
|
Karsten Hopp |
127748 |
{
|
|
Karsten Hopp |
127748 |
LOG_TR("Received RBG");
|
|
Karsten Hopp |
127748 |
rbg_status = RBG_GOT;
|
|
Karsten Hopp |
127748 |
***************
|
|
Karsten Hopp |
127748 |
*** 4427,4433 ****
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
key_name[0] = (int)KS_EXTRA;
|
|
Karsten Hopp |
127748 |
key_name[1] = (int)KE_IGNORE;
|
|
Karsten Hopp |
127748 |
! slen = 24;
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
--- 4432,4438 ----
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
key_name[0] = (int)KS_EXTRA;
|
|
Karsten Hopp |
127748 |
key_name[1] = (int)KE_IGNORE;
|
|
Karsten Hopp |
127748 |
! slen = 24 - (tp[0] == CSI) + (argp[21] == ESC);
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
}
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
*** ../vim-7.4.765/src/version.c 2015-07-03 12:44:01.739748554 +0200
|
|
Karsten Hopp |
127748 |
--- src/version.c 2015-07-03 12:49:06.288532246 +0200
|
|
Karsten Hopp |
127748 |
***************
|
|
Karsten Hopp |
127748 |
*** 743,744 ****
|
|
Karsten Hopp |
127748 |
--- 743,746 ----
|
|
Karsten Hopp |
127748 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
127748 |
+ /**/
|
|
Karsten Hopp |
127748 |
+ 766,
|
|
Karsten Hopp |
127748 |
/**/
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
--
|
|
Karsten Hopp |
127748 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
127748 |
172. You join listservers just for the extra e-mail.
|
|
Karsten Hopp |
127748 |
|
|
Karsten Hopp |
127748 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
127748 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
127748 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
127748 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|