… | |
… | |
923 | RETVAL |
923 | RETVAL |
924 | |
924 | |
925 | int |
925 | int |
926 | SET_FGCOLOR (int rend, int new_color) |
926 | SET_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 | |
932 | int |
932 | int |
933 | SET_BGCOLOR (int rend, int new_color) |
933 | SET_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 | |
939 | int |
939 | int |
940 | GET_CUSTOM (int rend) |
940 | GET_CUSTOM (int rend) |
… | |
… | |
1292 | |
1292 | |
1293 | void |
1293 | void |
1294 | rxvt_term::focus_out () |
1294 | rxvt_term::focus_out () |
1295 | |
1295 | |
1296 | void |
1296 | void |
|
|
1297 | rxvt_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 | |
|
|
1322 | void |
1297 | rxvt_term::want_refresh () |
1323 | rxvt_term::want_refresh () |
1298 | CODE: |
1324 | CODE: |
1299 | THIS->want_refresh = 1; |
1325 | THIS->want_refresh = 1; |
1300 | |
1326 | |
1301 | void |
1327 | void |