home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2013 / 2013.06.linuxmafia.com / linuxmafia.com / pub / os2 / stahl-ssh / sshpatch.diff < prev   
Encoding:
Text File  |  2000-06-10  |  2.6 KB  |  83 lines

  1. --- ssh-1.2.16/vt220.c    Fri Jul 25 18:42:16 1997
  2. +++ ssh-1.2.16dunc/vt220.c    Fri Jul 25 18:13:24 1997
  3. @@ -162,6 +162,30 @@
  4.    0xFA
  5.  };
  6.  
  7. +/* Conversion table from `l1' charset to `cp850' charset.
  8. +   Generated mechanically by GNU recode 3.4.1.
  9. +
  10. +   Corrected, and reduced to just characters 160 onwards (apart
  11. +   from ascii characters, only these ones are printable), 
  12. +   by Duncan Sargeant, 19970725
  13. +*/
  14. +
  15. +unsigned char const l1_to_cp850[] =
  16. +{
  17. +    255, 173, 189, 156, 207, 190, 221, 245,    /* 160 - 167 */
  18. +    249, 184, 166, 174, 170, 240, 169, 238,    /* 168 - 175 */
  19. +    248, 241, 253, 252, 239, 230, 244, 250,    /* 176 - 183 */
  20. +    247, 251, 167, 175, 172, 171, 243, 168,    /* 184 - 191 */
  21. +    183, 181, 182, 199, 142, 143, 146, 128,    /* 192 - 199 */
  22. +    212, 144, 210, 211, 222, 214, 215, 216,    /* 200 - 207 */
  23. +    209, 165, 227, 224, 226, 229, 153, 158,    /* 208 - 215 */
  24. +    157, 235, 233, 234, 154, 237, 232, 225,    /* 216 - 223 */
  25. +    133, 160, 131, 198, 132, 134, 145, 135,    /* 224 - 231 */
  26. +    138, 130, 136, 137, 141, 161, 140, 139,    /* 232 - 239 */
  27. +    208, 164, 149, 162, 147, 228, 148, 246,    /* 240 - 247 */
  28. +    155, 151, 163, 150, 129, 236, 231, 152,    /* 248 - 255 */
  29. +};
  30. +
  31.  static int  blink  = 0;
  32.  static int  bold   = 0;
  33.  static int  invis  = 0;
  34. @@ -454,6 +478,9 @@
  35.  {
  36.    char Cell[2];
  37.  
  38. +#ifdef DEBUG_VT220
  39. +  fprintf(stderr, "%i\n", numlines);
  40. +#endif
  41.    Cell[0] = SP;
  42.    Cell[1] = attr_default;
  43.    if (direction < 0)
  44. @@ -509,6 +536,8 @@
  45.                   if ((c >= 96) && (c <= 126) &&
  46.                      ((charset && graph_g1) || (!charset && graph_g0)))
  47.                     c = vt_graph[c - 96];
  48. +         else if (c >= 160)
  49. +           c = l1_to_cp850[c - 160];
  50.  
  51.                 if (insert_mode)
  52.                   {
  53. @@ -550,6 +579,8 @@
  54.          if ((*s >= 96) && (*s <= 126) &&
  55.            ((charset && graph_g1) || (!charset && graph_g0)))
  56.            *s = vt_graph[*s - 96];
  57. +    else if (*s >= 160)
  58. +      *s = l1_to_cp850[*s - 160];
  59.  
  60.        s++;
  61.      }
  62. @@ -950,14 +981,16 @@
  63.                    }
  64.        break;
  65.  
  66. -      case 'L': /* IL - insert line */
  67. +      case 'L': /* IL - insert line
  68.                  for (i = 1; i <= arg[0]; i++)
  69. -                  scroll(1, ypos, botmargin, 1);
  70. +        */
  71. +                  scroll(1, ypos, botmargin, arg[0]);
  72.        break;
  73.  
  74. -      case 'M': /* DL - delete line */
  75. +      case 'M': /* DL - delete line
  76.                  for (i = 1; i <= arg[0]; ++i)
  77. -                  scroll(-1, ypos, botmargin, 1);
  78. +        */
  79. +                  scroll(-1, ypos, botmargin, arg[0]);
  80.        break;
  81.  
  82.        case 'm': /* SGR - select graphic rendition */
  83.