[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ocaml-tmk-devel] Handling xterm resizing

From: Erik de Castro Lopo
Subject: Re: [Ocaml-tmk-devel] Handling xterm resizing
Date: Mon, 1 Nov 2010 11:26:01 +1100

Erik de Castro Lopo wrote:

> For the Ocaml curses bindings, I notice that ml_curses.c defines
> a SIGWINCH handler as:
>     static void winch_handler(int n)
>     {
>       signal(n,winch_handler);
>       ungetch(KEY_RESIZE);
>     }

I've just noticed something strange. I do indeed get a KEY_RESIZE
character from Curses.getch(), but only after I get another key.

Basically I do:

 a) start the curses program
 b) resize the window
 c) press another key

and I get the KEY_RESIZE character *after* the other key.

Erik de Castro Lopo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]