Re: [RFC] Get selection to buffer addition

Russell King
2001-08-08T21:21:33Z

On Sat, Jan 01, 2000 at 01:24:46AM +0000, Pavel Machek wrote:
> Hi!
>
> > I'm sending this mail again with the patch in plain text and not
> > gzip+uuencoded, sorry for any inconvenience.
> >
> > What I'm looking for:
> > I'm looking for comments and approval for a small addition to the console
> > driver (drivers/char/console.c).
> >
> > Small description:
> > The included patches adds a couple of new services to the TIOCLINUX ioctl
> > call, they are:
> >
> > 13 (get selection into a buffer): It copies the contents of the selection
> > buffer (maintained in kernel space) into a user space provided buffer. Is
> > something like "paste to a buffer" instead of just paste to the current
> > console.
> >
> > 14 (get selection length): Returns the length of the selection buffer (0 if
> > none selected).
>
> Looks good to me. Now, all I want is utility to share clipboard between
> X and text console...

Umm, silly question, but why not put this stuff into something similar to
gpm, rather than have unswappable kernel memory sucked up just for cut and
paste (possibly very large cut and paste under X).

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux