[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [gpm]Re: gpmselection

>> 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

/alessandro, not the gpm maintainer any more
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:25    [W:0.037 / U:3.300 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site