Hi all: Disclaimer: I'm new here, sorry if I doing something wrong. 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 attached 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). ----------- The attached file (patch.diff) contains diffs that apply without offsets into 2.4.7 kernel, they are valid for 2.2.18 too (with offset). I also attached a simple test. It is in spanish but the code is quite obvious. Additional question: Why the switch uses numbers? Shouldn't these values be defined as something like TIOCLINUX_GET_SELECTION in a header? What's the purpose? Just allow pasting in text editors using menues or without the mouse middle button. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: set-soft@bigfoot.com set@computer.org set@ieee.org Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013