bug-ncurses
[Top][All Lists]
Advanced

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

Re: exit activateCDKSelection from a callback


From: Thomas Dickey
Subject: Re: exit activateCDKSelection from a callback
Date: Mon, 30 Mar 2009 20:26:19 -0400 (EDT)

On Sun, 29 Mar 2009, TheLonelyStar wrote:


Hi,

In my application, I have a CDK Selection, which I gave focus to
activateCDKSelection.
When the user presses q I want to quit, so I do:

bindCDKObject(vSELECTION, name_sel, 'q', Quit, 0);

The Quit function sets a variable "Quit" to true, which is checked whenever
activateCDKSelection exits.

The Problem: This works, but I need to press TAB after I pressed q.
Can I somehow make the activateCDKSelection function make exit from within
the QUIT callback?

I'm not sure (the extra tab doesn't sound right)

Perhaps you can send a short demo program - then we can discuss...

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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