Technique for receiving specific keystrokes in GNUStep base
Michael Hopkins <[email protected]> Thu, 15 Feb 2007 15:39:21 +0000
| Newsgroups | gmane.comp.lib.gnustep.user |
|---|---|
| Organization | Posted via Supernews, http://www.supernews.com |
| Message-ID | <C1FA2F29.225DB%michael.hopkins__36807.9919986942$1171641440$gmane$org@hopkins-research.com> |
Hi all
I am looking for some advice on how best to recognise and act on certain key
strokes (e.g. Ctrl-C) whilst running a command line tool that uses GNUStep
base.
Currently our code (on various *nix's & Win32) uses the posix signal()
construct e.g.
#include <signal.h>
signal( SIGINT, function_to_call(...) );
I assume there is a more elegant way to do this in GNUStep base. Is
NSRunLoop involved perhaps?
Thanks & please feel free to CC to my email
Michael
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ _/ _/_/_/ Hopkins Research Ltd
_/ _/ _/ _/
_/_/_/_/ _/_/_/ http://www.hopkins-research.com/
_/ _/ _/ _/
_/ _/ _/ _/ 'touch the future'
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/