Support for blinking text and blinking cursor. Won't actually be
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 15 Oct 2002 16:38:10 +0000 (16:38 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 15 Oct 2002 16:38:10 +0000 (16:38 +0000)
accessible until there's a way to configure it on, but it worked in
tests.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2067 cda61777-01e9-0310-a592-d414129be87e

unix/pterm.c
unix/unix.h

index 3ae931f..c798ab9 100644 (file)
@@ -799,6 +799,7 @@ gint timer_func(gpointer data)
     }
 
     term_update();
+    term_blink(0);
     return TRUE;
 }
 
@@ -825,6 +826,7 @@ void pty_input_func(gpointer data, gint sourcefd, GdkInputCondition condition)
     }
     if (ret > 0)
        from_backend(0, buf, ret);
+    term_blink(1);
     term_out();
 }
 
index 2365f07..4885cc5 100644 (file)
@@ -25,7 +25,7 @@ extern Backend pty_backend;
 unsigned long getticks(void);         /* based on gettimeofday(2) */
 #define GETTICKCOUNT getticks
 #define TICKSPERSEC 1000000           /* gettimeofday returns microseconds */
-#define CURSORBLINK  400000           /* FIXME: need right way to do this */
+#define CURSORBLINK  450000           /* no standard way to set this */
 
 #define WCHAR wchar_t
 #define BYTE unsigned char