From: Alessandro Rubini <rubini@gnu.org>
To: pasky@pasky.ji.cz, j.mencak@hud.ac.uk, gpm@lists.linux.it,
linux-kernel@vger.kernel.org
Subject: Re: [gpm]Re: gpmselection
Date: Mon, 8 Apr 2002 08:30:38 +0200 [thread overview]
Message-ID: <20020408083038.A13359@morgana.systemy.it> (raw)
In-Reply-To: <20020407214445.GD3218@pasky.ji.cz>
>> What I am aiming at is an echange of data between X and a console. I
>> have a program `xsel' which does the same thing with X-Window selection.
> [...]
> The stuff you want to rewrite is at /usr/src/linux/drivers/char/selection.c,
> maybe random bits at /usr/src/linux/drivers/char/vt.c.
Adding one or two more "commands" in console.c::tioclinux (one to get
the current selection buffer, one to copy he buffer for user space,
possibly), is all that's needed.
> And, obviously GPM, as you want to move this functionality there.
This is a different issue altogether. I agree it would be a good move,
but it's not the original point.
> You probably want to completely remove concept of selections from
> kernel, make GPM to read content of /dev/vcc/X when grabbing a
> selection and output proper escape sequences for inverting the
> appropriate stuff
You don't need to send that, just use /dev/vcs. The problem, rather,
is ensuring the console doesn't get modified. Currently, it can be
blocked with existing ioctls() while the user selects, but any
highlight should be removed before the console is unlocked unless
other means are designed (not a good thing, in my opinion, as it
wouldn't actually take stuff out of the kernel any more).
> write handler for /dev/vcc/X to the kernel so that you can simulate
> keyboard input on the terminal
That's already there, nothing to add here. The problem, rather, is
handling not-direct mapping from glyphs to keyboard input, not always
trivial.
/alessandro, not the gpm maintainer any more
prev parent reply other threads:[~2002-04-08 6:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020407205703.GB30641@mencak.homeip.net>
[not found] ` <20020407214024.GC3218@pasky.ji.cz>
2002-04-07 21:44 ` gpmselection Petr Baudis
2002-04-08 6:30 ` Alessandro Rubini [this message]
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=20020408083038.A13359@morgana.systemy.it \
--to=rubini@gnu.org \
--cc=gpm@lists.linux.it \
--cc=j.mencak@hud.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=pasky@pasky.ji.cz \
/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®