]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Support for blinking text and blinking cursor. Won't actually be
authorSimon Tatham <anakin@pobox.com>
Tue, 15 Oct 2002 16:38:10 +0000 (16:38 +0000)
committerSimon Tatham <anakin@pobox.com>
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.

[originally from svn r2067]

unix/pterm.c
unix/unix.h

index 3ae931f4e9d9bccf023b4be37cc1a1cf08efbd49..c798ab999883e8a1d68b7257ced9bfc2e5a94ba2 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 2365f07fbc8cbdc013460281a2f92822637842f4..4885cc50c9b617c7172cf4d10f40a593746aae80 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