-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 4e02cd893f2fc80e66f283e8b357a32a23edbb9d:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 4e02cd893f2fc80e66f283e8b357a32a23edbb9d
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Tue Nov 25 15:44:39 2003 +0000

    *** empty log message ***

diff --git a/reconf b/reconf

index 116eb2357f9de4277bdd0ef528bde0a87de1f0f9..

index ..fbf251482acefce917a92b3c911122de1d7ee38b 100755

--- a/reconf
+++ b/reconf
@@ -2,5 +2,6 @@
             --enable-wtmp --enable-lastlog --enable-xim --disable-strings --enable-xterm-scroll \
             --with-term=xterm --enable-keepscrolling --enable-xft \
             --enable-frills --disable-swapscreen \
-            --with-codesets=eu,jp
+            --with-codesets=eu,jp \
+            --enable-cursor-blink
             #--enable-pointer-blank --enable-cursor-blink
diff --git a/src/command.C b/src/command.C

index c60dc4ef417b585024d3c7bf7cedf8c61a446348..

index ..1f180f46358b72067179589ce3afa9e82a4b3872 100644

--- a/src/command.C
+++ b/src/command.C
@@ -1,7 +1,7 @@
 /*--------------------------------*-C-*---------------------------------*
  * File:	command.c
  *----------------------------------------------------------------------*
- * $Id: command.C,v 1.4 2003/11/25 15:25:16 pcg Exp $
+ * $Id: command.C,v 1.5 2003/11/25 15:44:38 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1992      John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
@@ -665,6 +665,7 @@ rxvt_term::process_x_events ()
       XEvent          xev;

       XNextEvent (Xdisplay, &xev);
+
 #if defined(CURSOR_BLINK)
       if ((Options & Opt_cursorBlink)
           && xev.type == KeyPress) {
@@ -672,7 +673,7 @@ rxvt_term::process_x_events ()
               hidden_cursor = 0;
               want_refresh = 1;
           }
-          want_keypress_time = 1;
+          blink_ev.start (NOW + BLINK_INTERVAL);
       }
 #endif

@@ -699,6 +700,15 @@ rxvt_term::process_x_events ()
   while (XPending (Xdisplay));
 }

+void
+rxvt_term::blink_cb (time_watcher &w)
+{
+  w.at += BLINK_INTERVAL;
+  hidden_cursor = !hidden_cursor;
+  want_refresh = 1;
+  flush();
+}
+
 void
 rxvt_term::x_cb (io_watcher &w, short revents)
 {
@@ -1406,6 +1416,10 @@ rxvt_process_x_event(pR_ XEvent *ev)
 #ifdef USE_XIM
 	    if (R->Input_Context != NULL)
 		XSetICFocus(R->Input_Context);
+#endif
+#ifdef CURSOR_BLINK
+            if (R->Options & Opt_cursorBlink)
+              R->blink_ev.start (NOW + BLINK_INTERVAL);
 #endif
 	}
 	break;
@@ -1417,6 +1431,11 @@ rxvt_process_x_event(pR_ XEvent *ev)
 #ifdef USE_XIM
 	    if (R->Input_Context != NULL)
 		XUnsetICFocus(R->Input_Context);
+#endif
+#ifdef CURSOR_BLINK
+            if (R->Options & Opt_cursorBlink)
+              R->blink_ev.stop ();
+            R->hidden_cursor = 0;
 #endif
 	}
 	break;
diff --git a/src/init.C b/src/init.C

index 5a395132c5d333a3aaf27c0eb97d6d6f6d94c673..

index ..45d2d40b6a00f84713095714ae1ee0d974524a4f 100644

--- a/src/init.C
+++ b/src/init.C
@@ -1,7 +1,7 @@
 /*--------------------------------*-C-*---------------------------------*
  * File:        init.c
  *----------------------------------------------------------------------*
- * $Id: init.C,v 1.4 2003/11/25 15:25:17 pcg Exp $
+ * $Id: init.C,v 1.5 2003/11/25 15:44:38 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1992      John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
@@ -386,7 +386,7 @@ rxvt_term::init_vars()
     cmd_pid = -1;
     cmd_fd = tty_fd = Xfd = -1;
     PrivateModes = SavedModes = PrivMode_Default;
-    TermWin.focus = 1;
+    TermWin.focus = 0;
     TermWin.ncol = 80;
     TermWin.nrow = 24;
     TermWin.int_bwidth = INTERNALBORDERWIDTH;
diff --git a/src/main.C b/src/main.C

index 29698e6031ecb782214510768b95d08e70fbaaf9..

index ..87e7abb5d2b8c301cc1b032794a221f6e621528d 100644

--- a/src/main.C
+++ b/src/main.C
@@ -1,7 +1,7 @@
 /*--------------------------------*-C-*---------------------------------*
  * File:        main.c
  *----------------------------------------------------------------------*
- * $Id: main.C,v 1.4 2003/11/25 15:25:17 pcg Exp $
+ * $Id: main.C,v 1.5 2003/11/25 15:44:38 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1992      John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
@@ -60,8 +60,11 @@ rxvt_term::operator delete (void *p, size_t s)
 }

 rxvt_term::rxvt_term ()
-: pty_ev(this, &rxvt_term::pty_cb),
-  x_ev  (this, &rxvt_term::x_cb)
+: pty_ev   (this, &rxvt_term::pty_cb),
+#ifdef CURSOR_BLINK
+  blink_ev (this, &rxvt_term::blink_cb),
+#endif
+  x_ev     (this, &rxvt_term::x_cb)
 {
   cmdbuf_ptr = cmdbuf_endp = cmdbuf_base;
 }
diff --git a/src/rxvt.h b/src/rxvt.h

index ee320a362b1ef9980477b8f296bbaba4bada6567..

index ..75419153f0f334f23e4502dd8450a252a9b5e4fa 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1,5 +1,5 @@
 /*
- * $Id: rxvt.h,v 1.4 2003/11/25 15:25:17 pcg Exp $
+ * $Id: rxvt.h,v 1.5 2003/11/25 15:44:39 pcg Exp $
  */

 #ifndef _RXVT_H_                /* include once only */
@@ -841,6 +841,8 @@ enum {
 # include "menubar.h"
 #endif

+#define BLINK_INTERVAL 0.5
+
 struct mbstate {
   unsigned char orig;
   uint32_t reg;
@@ -1116,6 +1118,10 @@ struct rxvt_term : rxvt_vars {
   void pty_cb (io_watcher &w, short revents); io_watcher pty_ev;
   void x_cb   (io_watcher &w, short revents); io_watcher x_ev;

+#ifdef CURSOR_BLINK
+  void blink_cb (time_watcher &w); time_watcher blink_ev;
+#endif
+
   void flush ();

   rxvt_term ();
@@ -1159,3 +1165,4 @@ struct rxvt_term : rxvt_vars {
 #endif

 #endif                          /* _RXVT_H_ */
+

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:31:56 2024