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.298 by root, Tue Jan 31 18:36:35 2006 UTC vs.
Revision 1.301 by root, Tue Jan 31 21:23:13 2006 UTC

48#include "../config.h" 48#include "../config.h"
49#include "rxvt.h" 49#include "rxvt.h"
50#include "rxvtperl.h" 50#include "rxvtperl.h"
51#include "version.h" 51#include "version.h"
52#include "command.h" 52#include "command.h"
53
54#if HAVE_SCHED_YIELD
55#undef HAVE_SCHED_YIELD // disabled for the time being
56//# include <sched.h>
57#endif
58 53
59#ifdef KEYSYM_RESOURCE 54#ifdef KEYSYM_RESOURCE
60# include "keyboard.h" 55# include "keyboard.h"
61#endif 56#endif
62 57
1093 1088
1094 want_refresh = 1; 1089 want_refresh = 1;
1095 w.start (w.at + SCROLLBAR_CONTINUOUS_DELAY); 1090 w.start (w.at + SCROLLBAR_CONTINUOUS_DELAY);
1096 } 1091 }
1097} 1092}
1098#endif
1099
1100#if HAVE_SCHED_YIELD
1101static struct event_handler
1102{
1103 check_watcher cw_yield;
1104
1105 void yield (check_watcher &w)
1106 {
1107 sched_yield ();
1108 w.stop ();
1109 }
1110
1111 event_handler ()
1112 : cw_yield (this, &event_handler::yield)
1113 {
1114 }
1115} event_handler;
1116#endif 1093#endif
1117 1094
1118bool 1095bool
1119rxvt_term::pty_fill () 1096rxvt_term::pty_fill ()
1120{ 1097{
2541 if (ISSET_PIXCOLOR (Color_tint)) 2518 if (ISSET_PIXCOLOR (Color_tint))
2542 { 2519 {
2543 int shade = rs[Rs_shade] ? atoi (rs[Rs_shade]) : 100; 2520 int shade = rs[Rs_shade] ? atoi (rs[Rs_shade]) : 100;
2544 2521
2545 rgba c; 2522 rgba c;
2546 pix_colors_focused [Color_tint].get (this, c); 2523 pix_colors_focused [Color_tint].get (c);
2547 2524
2548 ShadeXImage (this, image, shade, c.r, c.g, c.b); 2525 ShadeXImage (this, image, shade, c.r, c.g, c.b);
2549 } 2526 }
2550#endif 2527#endif
2551 2528
3572 if (args[0] >= 24) /* set height (chars) */ 3549 if (args[0] >= 24) /* set height (chars) */
3573 set_widthheight ((unsigned int)width, 3550 set_widthheight ((unsigned int)width,
3574 (unsigned int) (args[1] * fheight)); 3551 (unsigned int) (args[1] * fheight));
3575 break; 3552 break;
3576 3553
3577
3578 /* 3554 /*
3579 * reports - some output format copied from XTerm 3555 * reports - some output format copied from XTerm
3580 */ 3556 */
3581 case 11: /* report window state */ 3557 case 11: /* report window state */
3582 XGetWindowAttributes (xdisp, parent[0], &wattr); 3558 XGetWindowAttributes (xdisp, parent[0], &wattr);
3720rxvt_term::process_color_seq (int report, int color, const char *str, char resp) 3696rxvt_term::process_color_seq (int report, int color, const char *str, char resp)
3721{ 3697{
3722 if (str[0] == '?' && !str[1]) 3698 if (str[0] == '?' && !str[1])
3723 { 3699 {
3724 rgba c; 3700 rgba c;
3725 pix_colors_focused[color].get (this, c); 3701 pix_colors_focused[color].get (c);
3726 3702
3727#if XFT 3703#if XFT
3728 if (c.a != rgba::MAX_CC) 3704 if (c.a != rgba::MAX_CC)
3729 tt_printf ("\033]%d;rgba:%04x/%04x/%04x/%04x%c", report, c.a, c.r, c.g, c.b, resp); 3705 tt_printf ("\033]%d;rgba:%04x/%04x/%04x/%04x%c", report, c.a, c.r, c.g, c.b, resp);
3730 else 3706 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines