… | |
… | |
1016 | flush (); |
1016 | flush (); |
1017 | } |
1017 | } |
1018 | |
1018 | |
1019 | #ifdef CURSOR_BLINK |
1019 | #ifdef CURSOR_BLINK |
1020 | void |
1020 | void |
|
|
1021 | rxvt_term::cursor_blink_reset () |
|
|
1022 | { |
|
|
1023 | if (hidden_cursor) |
|
|
1024 | { |
|
|
1025 | hidden_cursor = 0; |
|
|
1026 | want_refresh = 1; |
|
|
1027 | } |
|
|
1028 | |
|
|
1029 | if (option (Opt_cursorBlink)) |
|
|
1030 | cursor_blink_ev.again (); |
|
|
1031 | else |
|
|
1032 | cursor_blink_ev.stop (); |
|
|
1033 | } |
|
|
1034 | |
|
|
1035 | void |
1021 | rxvt_term::cursor_blink_cb (ev::timer &w, int revents) |
1036 | rxvt_term::cursor_blink_cb (ev::timer &w, int revents) |
1022 | { |
1037 | { |
1023 | hidden_cursor = !hidden_cursor; |
1038 | hidden_cursor = !hidden_cursor; |
1024 | want_refresh = 1; |
1039 | want_refresh = 1; |
1025 | refresh_check (); |
1040 | refresh_check (); |
… | |
… | |
1676 | } |
1691 | } |
1677 | break; |
1692 | break; |
1678 | } |
1693 | } |
1679 | |
1694 | |
1680 | #if defined(CURSOR_BLINK) |
1695 | #if defined(CURSOR_BLINK) |
1681 | if (option (Opt_cursorBlink) && ev.type == KeyPress) |
1696 | if (ev.type == KeyPress) |
1682 | { |
|
|
1683 | if (hidden_cursor) |
|
|
1684 | { |
|
|
1685 | hidden_cursor = 0; |
|
|
1686 | want_refresh = 1; |
|
|
1687 | } |
|
|
1688 | |
|
|
1689 | cursor_blink_ev.again (); |
1697 | cursor_blink_reset (); |
1690 | } |
|
|
1691 | #endif |
1698 | #endif |
1692 | |
1699 | |
1693 | #if defined(POINTER_BLANK) |
1700 | #if defined(POINTER_BLANK) |
1694 | if (option (Opt_pointerBlank) && pointerBlankDelay > 0) |
1701 | if (option (Opt_pointerBlank) && pointerBlankDelay > 0) |
1695 | { |
1702 | { |