From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7aa4d3ffb49d5de X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-14 09:46:02 PST Message-ID: <3D0A1D8D.9040905@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Curses ESC character and protected objects References: <877f1a1d.0206140330.278f5121@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 14 Jun 2002 12:45:01 -0400 NNTP-Posting-Host: 198.96.47.195 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1024073100 198.96.47.195 (Fri, 14 Jun 2002 12:45:00 EDT) NNTP-Posting-Date: Fri, 14 Jun 2002 12:45:00 EDT Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:25956 Date: 2002-06-14T12:45:01-04:00 List-Id: 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.