mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Shawn Rutledge" <shawn.t.rutledge@gmail.com>
To: "Jan Engelhardt" <jengelh@computergmbh.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: attempting to open a VT from elsewhere and take raw keyboard input
Date: Tue, 17 Jul 2007 22:01:16 -0700	[thread overview]
Message-ID: <d9a6586e0707172201m557b91fy5c356d8c98215ffa@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0707172135110.27468@fbirervta.pbzchgretzou.qr>

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 <jengelh@computergmbh.de> 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.

  reply	other threads:[~2007-07-18  5:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-17  8:51 Shawn Rutledge
2007-07-17 19:37 ` Jan Engelhardt
2007-07-18  5:01   ` Shawn Rutledge [this message]
2007-07-18  7:49     ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9a6586e0707172201m557b91fy5c356d8c98215ffa@mail.gmail.com \
    --to=shawn.t.rutledge@gmail.com \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®