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.555 by sf-exg, Sat Aug 16 10:51:23 2014 UTC vs.
Revision 1.558 by root, Tue Sep 2 16:28:34 2014 UTC

210 210
211 max_it (width, strlen (attr)); 211 max_it (width, strlen (attr));
212 212
213 if (y >= 0) 213 if (y >= 0)
214 { 214 {
215 y = (y >= nrow - len - 4 && x < width + 2) ? 0 : -1; 215 y = (y >= nrow - len - 5 && x < width + 2) ? 0 : -1;
216 x = 0; 216 x = 0;
217 } 217 }
218 218
219 scr_overlay_new (x, y, width, len * 2 + 2); 219 scr_overlay_new (x, y, width, len * 2 + 2);
220 220
3092 scr_insert_mode (1); 3092 scr_insert_mode (1);
3093 else if (arg[0] == 20) 3093 else if (arg[0] == 20)
3094 priv_modes |= PrivMode_LFNL; 3094 priv_modes |= PrivMode_LFNL;
3095 break; 3095 break;
3096 3096
3097 case CSI_71: // DESCUSR: set cursor style 3097 case CSI_71: // DECSCUSR: set cursor style
3098 if (prev_ch == ' ') 3098 if (prev_ch == ' ')
3099 set_cursor_style (arg[0]); 3099 set_cursor_style (arg[0]);
3100 break; 3100 break;
3101 3101
3102 /* 3102 /*
4015} 4015}
4016 4016
4017void 4017void
4018rxvt_term::set_cursor_style (int style) 4018rxvt_term::set_cursor_style (int style)
4019{ 4019{
4020 if (!IN_RANGE_INC (style, 0, 4)) 4020 if (!IN_RANGE_INC (style, 0, 6))
4021 return; 4021 return;
4022 4022
4023 if (style == 0)
4024 style = 1;
4025
4026 cursor_type = (style - 1) / 2;
4023 set_option (Opt_cursorUnderline, style >= 3); 4027 set_option (Opt_cursorUnderline, cursor_type == 1);
4024 4028
4025#ifdef CURSOR_BLINK 4029#ifdef CURSOR_BLINK
4026 set_option (Opt_cursorBlink, !style || (style & 1)); 4030 set_option (Opt_cursorBlink, style & 1);
4027 cursor_blink_reset (); 4031 cursor_blink_reset ();
4028#endif 4032#endif
4029 4033
4030 want_refresh = 1; 4034 want_refresh = 1;
4031} 4035}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines