comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Curses ESC character and protected objects
Date: Fri, 14 Jun 2002 12:45:01 -0400
Date: 2002-06-14T12:45:01-04:00	[thread overview]
Message-ID: <3D0A1D8D.9040905@cogeco.ca> (raw)
In-Reply-To: 877f1a1d.0206140330.278f5121@posting.google.com

Sandro Binetti wrote:

> Hi group.
> 
> My UnixWare 7.1.1 software is written in ADA, compiled by GNAT 3.13a1,
> and uses a binding to Unix curses library for I/O.
> 
> The keyboard ESC key has a strange behaviour. Normally, when the ESC
> key is pressed, after a delay of about 0.5 sec, it's correctly managed
> by the program (in this 0.5 sec delay curses waits for some other
> character, in order to correctly manage esc sequences coming from
> other keyboard keys).
> 
> But since the moment I introduced a few protected objects to my
> software, the behaviour of the ESC key is completely changed: I have
> to press the ESC key twice to make it go right (it seems that the
> original 0.5 sec delay has become an infinite timeout ...)


It sounds like to me your Ada implementation does not grok the
character I/O timeout situation correctly. There is a V_TIME
parameter (IIRC) that curses will use for the 0.5 second
timeout, reading terminal input. Assuming you have no memory
corruption happening in your program, it sounds to me like
you have an Ada library implementation problem WRT the V_TIME
timeout handling.

Warren.





      reply	other threads:[~2002-06-14 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 11:30 Curses ESC character and protected objects Sandro Binetti
2002-06-14 16:45 ` Warren W. Gay VE3WWG [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox