From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754435AbXGRFB1 (ORCPT ); Wed, 18 Jul 2007 01:01:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751248AbXGRFBS (ORCPT ); Wed, 18 Jul 2007 01:01:18 -0400 Received: from an-out-0708.google.com ([209.85.132.240]:6824 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbXGRFBR (ORCPT ); Wed, 18 Jul 2007 01:01:17 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YQWRusRJnMlrmpen0IEY5NlveKMKJpOVMrwafYBZpwJDbmHA6hrAtQjXc3YBzpHTcLJon2ij+AH54yx06bnrmQ+QnCWELYmgsTxy+TcrpSlZlqnEU2ONkUhI2HIRQbnkF1du+12hx74yrbL79aUl8pR5sTU/a39ciP9crR20/7Q= Message-ID: Date: Tue, 17 Jul 2007 22:01:16 -0700 From: "Shawn Rutledge" To: "Jan Engelhardt" Subject: Re: attempting to open a VT from elsewhere and take raw keyboard input Cc: linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Yes I know that X does it; I'm trying to write a new windowing system which also does that, and the question is how they did it. I would have expected if I just open /dev/tty1, set raw mode, and set some termios flags I'd get every key press and release; and it would be my choice whether to use blocking or non-blocking I/O. On 7/17/07, Jan Engelhardt wrote: > > On Jul 17 2007 01:51, Shawn Rutledge wrote: > > > > I'm messing around with framebuffer graphics stuff and trying to write > > a keyboard driver similar to the one in X, which will allow you to > > start up the graphics system from any tty (not just a virtual > > console), > > right, I can start X these days over SSH (either init5 or startx) > > > find an available VT, switch to that VT, > > X does that automatically ('regular' X, not considering Xdmcp or such) > > > and then take input from the physically attached keyboard rather > > than necessarily > > X does that too.