1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: command.c |
2 | * File: command.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: command.C,v 1.27 2003/12/30 01:35:58 pcg Exp $ |
4 | * $Id: command.C,v 1.29 2004/01/19 17:26:43 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
756 | |
756 | |
757 | #ifdef CURSOR_BLINK |
757 | #ifdef CURSOR_BLINK |
758 | void |
758 | void |
759 | rxvt_term::blink_cb (time_watcher &w) |
759 | rxvt_term::blink_cb (time_watcher &w) |
760 | { |
760 | { |
761 | w.at += BLINK_INTERVAL; |
|
|
762 | hidden_cursor = !hidden_cursor; |
761 | hidden_cursor = !hidden_cursor; |
763 | want_refresh = 1; |
762 | want_refresh = 1; |
|
|
763 | |
|
|
764 | w.start (w.at + BLINK_INTERVAL); |
764 | } |
765 | } |
765 | #endif |
766 | #endif |
766 | |
767 | |
767 | void |
768 | void |
768 | rxvt_term::x_cb (io_watcher &w, short revents) |
769 | rxvt_term::x_cb (io_watcher &w, short revents) |
… | |
… | |
1019 | quick_timeout |= R->want_full_refresh; |
1020 | quick_timeout |= R->want_full_refresh; |
1020 | #endif |
1021 | #endif |
1021 | #endif |
1022 | #endif |
1022 | } |
1023 | } |
1023 | |
1024 | |
|
|
1025 | #ifdef POINTER_BLANK |
1024 | void |
1026 | void |
1025 | rxvt_term::pointer_unblank () |
1027 | rxvt_term::pointer_unblank () |
1026 | { |
1028 | { |
1027 | XDefineCursor (Xdisplay, TermWin.vt, TermWin_cursor); |
1029 | XDefineCursor (Xdisplay, TermWin.vt, TermWin_cursor); |
1028 | recolour_cursor (); |
1030 | recolour_cursor (); |
1029 | |
1031 | |
1030 | #ifdef POINTER_BLANK |
|
|
1031 | hidden_pointer = 0; |
1032 | hidden_pointer = 0; |
1032 | |
1033 | |
1033 | if (Options & Opt_pointerBlank) |
1034 | if (Options & Opt_pointerBlank) |
1034 | pointer_ev.start (NOW + pointerBlankDelay); |
1035 | pointer_ev.start (NOW + pointerBlankDelay); |
1035 | #endif |
|
|
1036 | } |
1036 | } |
1037 | |
1037 | |
1038 | #ifdef POINTER_BLANK |
|
|
1039 | void |
1038 | void |
1040 | rxvt_term::pointer_blank () |
1039 | rxvt_term::pointer_blank () |
1041 | { |
1040 | { |
1042 | pointer_ev.stop (); |
|
|
1043 | |
|
|
1044 | if (!(Options & Opt_pointerBlank)) |
1041 | if (!(Options & Opt_pointerBlank)) |
1045 | return; |
1042 | return; |
1046 | |
1043 | |
1047 | XDefineCursor (Xdisplay, TermWin.vt, blank_cursor); |
1044 | XDefineCursor (Xdisplay, TermWin.vt, blank_cursor); |
1048 | XFlush (Xdisplay); |
1045 | XFlush (Xdisplay); |