Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932254AbWBFRhE (ORCPT ); Mon, 6 Feb 2006 12:37:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932256AbWBFRhE (ORCPT ); Mon, 6 Feb 2006 12:37:04 -0500 Received: from uproxy.gmail.com ([66.249.92.195]:40730 "EHLO uproxy.gmail.com") by vger.kernel.org with ESMTP id S932254AbWBFRhC convert rfc822-to-8bit (ORCPT ); Mon, 6 Feb 2006 12:37:02 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aq5z7EvFMIrIG2V5lp1pIMokZ5j5By6IP7uTqP0I3OCiogVBMxqXwX1judCtvWYKI5wYW8tX+GeL/PTFTm8OVBkoPNjsZOJTlvD6pqUKDZXNGe52kVRtgIR8qAT1E16vqjMF65gysPM1S/+ZGWccCK0eGGvpbr9Ud7NLccTpItI= Message-ID: <728201270602060936t366f5fdaxb00ca6e96b311c01@mail.gmail.com> Date: Mon, 6 Feb 2006 11:36:59 -0600 From: Ram Gupta To: pdn Subject: Re: trapping key press using signals Cc: linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 18 On 2/6/06, pdn wrote: > > Hi, > How do i catch the signals generated by keypress using signals. Why do you need to catch keypress. Keypress generates interrupts which are controlled by linux kernel. Then it transmits this character(s) to the application. Hypothetically it is possible to setup some callback with kernel so that whenver there is a keypress it handles it & then invokes the call back. But I doubt if it is done currently. Regards Ram Gupta - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/