Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261496AbVEDIql (ORCPT ); Wed, 4 May 2005 04:46:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261503AbVEDIql (ORCPT ); Wed, 4 May 2005 04:46:41 -0400 Received: from lantana.tenet.res.in ([202.144.28.166]:47295 "EHLO lantana.cs.iitm.ernet.in") by vger.kernel.org with ESMTP id S261496AbVEDIqj (ORCPT ); Wed, 4 May 2005 04:46:39 -0400 Date: Wed, 4 May 2005 14:17:13 +0530 (IST) From: "P.Manohar" To: linux-kernel@vger.kernel.org Subject: Re: stuffing characters to keyboard buffer. In-Reply-To: <200505021152.19778.dtor_core@ameritech.net> Message-ID: References: <200505021152.19778.dtor_core@ameritech.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Mail-scanner Found to be clean X-MailScanner-From: pmanohar@lantana.cs.iitm.ernet.in Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 666 Lines: 23 I am working in 2.4.20-8 kernel. To fill the keyboard buffer with characters from user space, I used TIOCSTI ioctls. Is there a similar method so I can send raw keyboard codes into the scancode buffer? ioctls("/dev/tty0",TIOCSTI,&c); it worked in Console. ioctls("/dev/tty7",TIOCSTI,&c); is not working in x-windows. Here c is a character. Can you guide me in this regard. ThanksInAdvance, P.Manohar, - 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/