… | |
… | |
363 | RETVAL = GET_BASEBG (rend); |
363 | RETVAL = GET_BASEBG (rend); |
364 | OUTPUT: |
364 | OUTPUT: |
365 | RETVAL |
365 | RETVAL |
366 | |
366 | |
367 | int |
367 | int |
368 | SET_FGCOLOR (int rend, int color) |
368 | SET_FGCOLOR (int rend, int new_color) |
369 | CODE: |
369 | CODE: |
370 | RETVAL = SET_FGCOLOR (rend, color); |
370 | RETVAL = SET_FGCOLOR (rend, new_color); |
371 | OUTPUT: |
371 | OUTPUT: |
372 | RETVAL |
372 | RETVAL |
373 | |
373 | |
374 | int |
374 | int |
375 | SET_BGCOLOR (int rend, int color) |
375 | SET_BGCOLOR (int rend, int new_color) |
376 | CODE: |
376 | CODE: |
377 | RETVAL = SET_BGCOLOR (rend, color); |
377 | RETVAL = SET_BGCOLOR (rend, new_color); |
|
|
378 | OUTPUT: |
|
|
379 | RETVAL |
|
|
380 | |
|
|
381 | int |
|
|
382 | GET_CUSTOM (int rend) |
|
|
383 | CODE: |
|
|
384 | RETVAL = (rend && RS_customMask) >> RS_customShift; |
|
|
385 | OUTPUT: |
|
|
386 | RETVAL |
|
|
387 | |
|
|
388 | int |
|
|
389 | SET_CUSTOM (int rend, int new_value) |
|
|
390 | CODE: |
|
|
391 | { |
|
|
392 | if (!IN_RANGE_EXC (new_value, 0, RS_customCount)) |
|
|
393 | croak ("custom value out of range, must be 0..%d", RS_customCount - 1); |
|
|
394 | |
|
|
395 | RETVAL = (rend & ~RS_customMask) |
|
|
396 | | ((new_value << RS_customShift) & RS_customMask); |
|
|
397 | } |
378 | OUTPUT: |
398 | OUTPUT: |
379 | RETVAL |
399 | RETVAL |
380 | |
400 | |
381 | MODULE = urxvt PACKAGE = urxvt::term |
401 | MODULE = urxvt PACKAGE = urxvt::term |
382 | |
402 | |