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.97 by root, Sat Feb 4 16:12:48 2006 UTC vs.
Revision 1.98 by root, Mon Feb 6 05:40:15 2006 UTC

923 RETVAL 923 RETVAL
924 924
925int 925int
926SET_FGCOLOR (int rend, int new_color) 926SET_FGCOLOR (int rend, int new_color)
927 CODE: 927 CODE:
928 RETVAL = SET_FGCOLOR (rend, new_color); 928 RETVAL = SET_FGCOLOR (rend, clamp (new_color, 0, TOTAL_COLORS - 1));
929 OUTPUT: 929 OUTPUT:
930 RETVAL 930 RETVAL
931 931
932int 932int
933SET_BGCOLOR (int rend, int new_color) 933SET_BGCOLOR (int rend, int new_color)
934 CODE: 934 CODE:
935 RETVAL = SET_BGCOLOR (rend, new_color); 935 RETVAL = SET_BGCOLOR (rend, clamp (new_color, 0, TOTAL_COLORS - 1));
936 OUTPUT: 936 OUTPUT:
937 RETVAL 937 RETVAL
938 938
939int 939int
940GET_CUSTOM (int rend) 940GET_CUSTOM (int rend)
1292 1292
1293void 1293void
1294rxvt_term::focus_out () 1294rxvt_term::focus_out ()
1295 1295
1296void 1296void
1297rxvt_term::key_press (unsigned int state, unsigned int keycode, Time time = CurrentTime)
1298 ALIAS:
1299 key_release = 1
1300 CODE:
1301{
1302 XKeyEvent xkey;
1303
1304 memset (&xkey, 0, sizeof (xkey));
1305
1306 xkey.time = time;
1307 xkey.state = state;
1308 xkey.keycode = keycode;
1309
1310 xkey.type = ix ? KeyRelease : KeyPress;
1311 xkey.display = THIS->dpy;
1312 xkey.window = THIS->vt;
1313 xkey.root = THIS->display->root;
1314 xkey.subwindow = THIS->vt;
1315
1316 if (ix)
1317 THIS->key_release (xkey);
1318 else
1319 THIS->key_press (xkey);
1320}
1321
1322void
1297rxvt_term::want_refresh () 1323rxvt_term::want_refresh ()
1298 CODE: 1324 CODE:
1299 THIS->want_refresh = 1; 1325 THIS->want_refresh = 1;
1300 1326
1301void 1327void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines