From: simon Date: Tue, 15 Oct 2002 16:38:10 +0000 (+0000) Subject: Support for blinking text and blinking cursor. Won't actually be X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/215a9fd92c158169c0c60959f2682f7301108dbf Support for blinking text and blinking cursor. Won't actually be 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 --- diff --git a/unix/pterm.c b/unix/pterm.c index 3ae931f4..c798ab99 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -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(); } diff --git a/unix/unix.h b/unix/unix.h index 2365f07f..4885cc50 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -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