ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.465 by sf-exg, Sat Dec 18 14:00:43 2010 UTC vs.
Revision 1.470 by sf-exg, Sun Jan 9 23:48:37 2011 UTC

2695 2695
2696 /* 8.3.87: NEXT LINE */ 2696 /* 8.3.87: NEXT LINE */
2697 case C1_NEL: /* ESC E */ 2697 case C1_NEL: /* ESC E */
2698 { 2698 {
2699 wchar_t nlcr[] = { C0_LF, C0_CR }; 2699 wchar_t nlcr[] = { C0_LF, C0_CR };
2700 scr_add_lines (nlcr, sizeof (nlcr) / sizeof (nlcr [0]), 1); 2700 scr_add_lines (nlcr, ARRAY_LENGTH(nlcr), 1);
2701 } 2701 }
2702 break; 2702 break;
2703 2703
2704 /* kidnapped escape sequence: Should be 8.3.48 */ 2704 /* kidnapped escape sequence: Should be 8.3.48 */
2705 case C1_ESA: /* ESC G */ 2705 case C1_ESA: /* ESC G */
2881 scr_soft_reset (); 2881 scr_soft_reset ();
2882 2882
2883 static const int pm_h[] = { 7, 25 }; 2883 static const int pm_h[] = { 7, 25 };
2884 static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1005, 1015, 1049 }; 2884 static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1005, 1015, 1049 };
2885 2885
2886 process_terminal_mode ('h', 0, sizeof (pm_h) / sizeof (pm_h[0]), pm_h); 2886 process_terminal_mode ('h', 0, ARRAY_LENGTH(pm_h), pm_h);
2887 process_terminal_mode ('l', 0, sizeof (pm_l) / sizeof (pm_l[0]), pm_l); 2887 process_terminal_mode ('l', 0, ARRAY_LENGTH(pm_l), pm_l);
2888 } 2888 }
2889 break; 2889 break;
2890 } 2890 }
2891 2891
2892 return; 2892 return;
3455 { 3455 {
3456 bool changed = false; 3456 bool changed = false;
3457 3457
3458 if (ISSET_PIXCOLOR (Color_tint)) 3458 if (ISSET_PIXCOLOR (Color_tint))
3459 changed = bgPixmap.set_tint (pix_colors_focused [Color_tint]); 3459 changed = bgPixmap.set_tint (pix_colors_focused [Color_tint]);
3460 else
3461 changed = bgPixmap.unset_tint ();
3462 3460
3463 if (changed) 3461 if (changed)
3464 update_background (); 3462 update_background ();
3465 } 3463 }
3466 3464
3701 for (i = 0; i < nargs; i++) 3699 for (i = 0; i < nargs; i++)
3702 { 3700 {
3703 state = -1; 3701 state = -1;
3704 3702
3705 /* basic handling */ 3703 /* basic handling */
3706 for (j = 0; j < (sizeof (argtopriv)/sizeof (argtopriv[0])); j++) 3704 for (j = 0; j < ARRAY_LENGTH(argtopriv); j++)
3707 if (argtopriv[j].argval == arg[i]) 3705 if (argtopriv[j].argval == arg[i])
3708 { 3706 {
3709 state = privcases (mode, argtopriv[j].bit); 3707 state = privcases (mode, argtopriv[j].bit);
3710 break; 3708 break;
3711 } 3709 }
4047 4045
4048 data += written; 4046 data += written;
4049 len -= written; 4047 len -= written;
4050 } 4048 }
4051 4049
4052 v_buffer = (char *)realloc (v_buffer, v_buflen + len); 4050 v_buffer = (char *)rxvt_realloc (v_buffer, v_buflen + len);
4053 4051
4054 memcpy (v_buffer + v_buflen, data, len); 4052 memcpy (v_buffer + v_buflen, data, len);
4055 v_buflen += len; 4053 v_buflen += len;
4056 4054
4057 pty_ev.set (ev::READ | ev::WRITE); 4055 pty_ev.set (ev::READ | ev::WRITE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines