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

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.8 by root, Tue Jan 3 00:06:57 2006 UTC vs.
Revision 1.9 by root, Tue Jan 3 01:15:00 2006 UTC

314 set_hookname (TTY_ACTIVITY); 314 set_hookname (TTY_ACTIVITY);
315 set_hookname (REFRESH_BEGIN); 315 set_hookname (REFRESH_BEGIN);
316 set_hookname (REFRESH_END); 316 set_hookname (REFRESH_END);
317 set_hookname (KEYBOARD_COMMAND); 317 set_hookname (KEYBOARD_COMMAND);
318 318
319 newCONSTSUB (gv_stashpv ("urxvt", 1), "DEFAULT_RSTYLE", newSViv (DEFAULT_RSTYLE));
320
319 sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); 321 sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR);
320} 322}
321 323
322void 324void
323set_should_invoke (int htype, int value) 325set_should_invoke (int htype, int value)
430rxvt_term::ncol () 432rxvt_term::ncol ()
431 CODE: 433 CODE:
432 RETVAL = THIS->ncol; 434 RETVAL = THIS->ncol;
433 OUTPUT: 435 OUTPUT:
434 RETVAL 436 RETVAL
437
438void
439rxvt_term::want_refresh ()
440 CODE:
441 THIS->want_refresh = 1;
435 442
436void 443void
437rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0) 444rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0)
438 PPCODE: 445 PPCODE:
439{ 446{
472 croak ("new_text extends beyond right margin"); 479 croak ("new_text extends beyond right margin");
473 } 480 }
474 481
475 for (int col = start_col; col < start_col + len; col++) 482 for (int col = start_col; col < start_col + len; col++)
476 { 483 {
477 l.t [col] = wstr [col]; 484 l.t [col] = wstr [col - start_col];
478 l.r [col] = SET_FONT (l.r [col], THIS->fontset [GET_STYLE (l.r [col])]->find_font (l.t [col])); 485 l.r [col] = SET_FONT (l.r [col], THIS->fontset [GET_STYLE (l.r [col])]->find_font (l.t [col]));
479 } 486 }
487
488 free (wstr);
480 } 489 }
481} 490}
482 491
483void 492void
484rxvt_term::ROW_r (int row_number, SV *new_rend = 0, int start_col = 0) 493rxvt_term::ROW_r (int row_number, SV *new_rend = 0, int start_col = 0)
511 if (start_col + len > THIS->ncol) 520 if (start_col + len > THIS->ncol)
512 croak ("new_rend array extends beyond right margin"); 521 croak ("new_rend array extends beyond right margin");
513 522
514 for (int col = start_col; col < start_col + len; col++) 523 for (int col = start_col; col < start_col + len; col++)
515 { 524 {
516 rend_t r = SvIV (*av_fetch (av, col, 1)) & ~RS_fontMask; 525 rend_t r = SvIV (*av_fetch (av, col - start_col, 1)) & ~RS_fontMask;
517 526
518 l.r [col] = SET_FONT (r, THIS->fontset [GET_STYLE (r)]->find_font (l.t [col])); 527 l.r [col] = SET_FONT (r, THIS->fontset [GET_STYLE (r)]->find_font (l.t [col]));
519 } 528 }
520 } 529 }
521} 530}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines