Patch 6.3.083

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Patch 6.3.083

Bram Moolenaar

Patch 6.3.083
Problem:    VMS: The vt320 termcap entry is incomplete.
Solution:   Add missing function keys.  (Zoltan Arpadffy)
Files:    src/term.c


*** ../vim-6.3.082/src/term.c Sat Sep 18 20:28:07 2004
--- src/term.c Thu Jul 21 13:00:18 2005
***************
*** 812,827 ****
      {(int)KS_CCO, "8"}, /* allow 8 colors */
      {(int)KS_ME, IF_EB("\033[0m", ESC_STR "[0m")},
      {(int)KS_MR, IF_EB("\033[7m", ESC_STR "[7m")},
!     {(int)KS_MD,        IF_EB("\033[1m", ESC_STR "[1m")},  /* bold mode */
!     {(int)KS_SE,        IF_EB("\033[22m", ESC_STR "[22m")},/* normal mode */
!     {(int)KS_UE,        IF_EB("\033[24m", ESC_STR "[24m")},/* exit underscore mode */
!     {(int)KS_US,        IF_EB("\033[4m", ESC_STR "[4m")},  /* underscore mode */
!     {(int)KS_CZH,       IF_EB("\033[34;43m", ESC_STR "[34;43m" )},  /* italic mode: blue text on yellow */
!     {(int)KS_CZR,       IF_EB("\033[0m", ESC_STR "[0m")},           /* italic mode end */
!     {(int)KS_CAB,       IF_EB("\033[4%dm", ESC_STR "[4%dm" )},      /* set background color (ANSI) */
!     {(int)KS_CAF,       IF_EB("\033[3%dm", ESC_STR "[3%dm" )},      /* set foreground color (ANSI) */
!     {(int)KS_CSB,       IF_EB("\033[102;%dm", ESC_STR "[102;%dm" )},    /* set screen background color */
!     {(int)KS_CSF,       IF_EB("\033[101;%dm", ESC_STR "[101;%dm" )},    /* set screen foreground color */
      {(int)KS_MS, "y"},
      {(int)KS_UT, "y"},
      {(int)KS_LE, "\b"},
--- 812,827 ----
      {(int)KS_CCO, "8"}, /* allow 8 colors */
      {(int)KS_ME, IF_EB("\033[0m", ESC_STR "[0m")},
      {(int)KS_MR, IF_EB("\033[7m", ESC_STR "[7m")},
!     {(int)KS_MD, IF_EB("\033[1m", ESC_STR "[1m")},  /* bold mode */
!     {(int)KS_SE, IF_EB("\033[22m", ESC_STR "[22m")},/* normal mode */
!     {(int)KS_UE, IF_EB("\033[24m", ESC_STR "[24m")},/* exit underscore mode */
!     {(int)KS_US, IF_EB("\033[4m", ESC_STR "[4m")},  /* underscore mode */
!     {(int)KS_CZH, IF_EB("\033[34;43m", ESC_STR "[34;43m")},  /* italic mode: blue text on yellow */
!     {(int)KS_CZR, IF_EB("\033[0m", ESC_STR "[0m")},    /* italic mode end */
!     {(int)KS_CAB, IF_EB("\033[4%dm", ESC_STR "[4%dm")},    /* set background color (ANSI) */
!     {(int)KS_CAF, IF_EB("\033[3%dm", ESC_STR "[3%dm")},    /* set foreground color (ANSI) */
!     {(int)KS_CSB, IF_EB("\033[102;%dm", ESC_STR "[102;%dm")}, /* set screen background color */
!     {(int)KS_CSF, IF_EB("\033[101;%dm", ESC_STR "[101;%dm")}, /* set screen foreground color */
      {(int)KS_MS, "y"},
      {(int)KS_UT, "y"},
      {(int)KS_LE, "\b"},
***************
*** 840,852 ****
      {K_DOWN, IF_EB("\033[B", ESC_STR "[B")},
      {K_RIGHT, IF_EB("\033[C", ESC_STR "[C")},
      {K_LEFT, IF_EB("\033[D", ESC_STR "[D")},
      {K_F6, IF_EB("\033[17~", ESC_STR "[17~")},
      {K_F7, IF_EB("\033[18~", ESC_STR "[18~")},
      {K_F8, IF_EB("\033[19~", ESC_STR "[19~")},
      {K_F9, IF_EB("\033[20~", ESC_STR "[20~")},
      {K_F10, IF_EB("\033[21~", ESC_STR "[21~")},
! /*  {K_F11, IF_EB("\033[23~", ESC_STR "[23~")},
! *  (ESC) should not define, sometimes does not work */
      {K_F12, IF_EB("\033[24~", ESC_STR "[24~")},
      {K_F13, IF_EB("\033[25~", ESC_STR "[25~")},
      {K_F14, IF_EB("\033[26~", ESC_STR "[26~")},
--- 840,856 ----
      {K_DOWN, IF_EB("\033[B", ESC_STR "[B")},
      {K_RIGHT, IF_EB("\033[C", ESC_STR "[C")},
      {K_LEFT, IF_EB("\033[D", ESC_STR "[D")},
+     {K_F1, IF_EB("\033[11~", ESC_STR "[11~")},
+     {K_F2, IF_EB("\033[12~", ESC_STR "[12~")},
+     {K_F3, IF_EB("\033[13~", ESC_STR "[13~")},
+     {K_F4, IF_EB("\033[14~", ESC_STR "[14~")},
+     {K_F5, IF_EB("\033[15~", ESC_STR "[15~")},
      {K_F6, IF_EB("\033[17~", ESC_STR "[17~")},
      {K_F7, IF_EB("\033[18~", ESC_STR "[18~")},
      {K_F8, IF_EB("\033[19~", ESC_STR "[19~")},
      {K_F9, IF_EB("\033[20~", ESC_STR "[20~")},
      {K_F10, IF_EB("\033[21~", ESC_STR "[21~")},
!     {K_F11, IF_EB("\033[23~", ESC_STR "[23~")},
      {K_F12, IF_EB("\033[24~", ESC_STR "[24~")},
      {K_F13, IF_EB("\033[25~", ESC_STR "[25~")},
      {K_F14, IF_EB("\033[26~", ESC_STR "[26~")},
*** ../vim-6.3.082/src/version.c Wed Jul 20 11:09:52 2005
--- src/version.c Thu Jul 21 13:01:35 2005
***************
*** 643,644 ****
--- 643,646 ----
  {   /* Add new patch number below this line */
+ /**/
+     83,
  /**/

--
ARTHUR:   Ni!
BEDEVERE: Nu!
ARTHUR:   No.  Ni!  More like this. "Ni"!
BEDEVERE: Ni, ni, ni!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///