[gentoo-user] Re: [ot General Textmode q]
On 2009-09-22, Alex Schuster wrote: > Harry Putnam writes: > >> Can any one tell me how to copy with mouse (really the left mouse >> button provided on the touchpad) but paste from keyboard while in text >> (console) mode? Or using the touch pad thing somehow. I've tried >> pressing both touchpad buttons at once to emulate middle mouse but it >> has no effect. > > It should. Do you have 'Option "Emulate3Buttons" "false"' in your xorg.conf? > Also see Option "Emulate3Timeout" (man mousedrv). One assumes that "console mode" means he's not running X. That said, I presume gpm holds the answer. But, I don't run gpm and don't know much about it... -- Grant
[gentoo-user] Re: [ot General Textmode q]
Grant Edwards writes: [...] > One assumes that "console mode" means he's not running X. > > That said, I presume gpm holds the answer. But, I don't run gpm > and don't know much about it... James Ausmus writes: [...] > then edit /etc/conf.d/gpm and add a (or modify an existing uncommented): > > APPEND="-2" > > And then the right-click should be paste. Willie Wong writes: [...] > I think a possibility is that you have plugged in and used a mouse > with three buttons. This forced gpm into 3 button mode, so that the > middle button becomes paste and right button is extend selection. Then > you poor two-button touchpad has no more paste. > > To prevent that edit /etc/conf.d/gpm and add APPEND="-2" to force gpm > to stick with 2-button mode. Thanks to all for the prompt answers. That solves the touch pad problem. No one responded about the possibility of using the keyboard to do the paste ... and man gpm is silent about it as well, does that mean its not really possible to copy with mouse and paste with keyboard?
[gentoo-user] Re: [ot General Textmode q]
Mick writes: > On Wednesday 23 September 2009, Willie Wong wrote: >> On Tue, Sep 22, 2009 at 04:37:15PM -0500, Penguin Lover Harry Putnam > squawked: >> > Can any one tell me how to copy with mouse (really the left mouse >> > button provided on the touchpad) but paste from keyboard while in text >> > (console) mode? Or using the touch pad thing somehow. I've tried >> > pressing both touchpad buttons at once to emulate middle mouse but it >> > has no effect. >> >> In console the copy-paste is provided by GPM. And I thought GPM paste >> is right mouse key, not middle key. And I am also pretty sure that GPM >> does not do third button emulation the way X does. >> >> I think a possibility is that you have plugged in and used a mouse >> with three buttons. This forced gpm into 3 button mode, so that the >> middle button becomes paste and right button is extend selection. Then >> you poor two-button touchpad has no more paste. >> >> To prevent that edit /etc/conf.d/gpm and add APPEND="-2" to force gpm >> to stick with 2-button mode. > > I am not running gpm to test; have you tried the obvious 'Insert', or > Shift+I, > or Shift+Insert? None of those do what I'm after here. Someone answered that screen can do the kind of thing I talked about ... and yet it can.
[gentoo-user] Re: [ot General Textmode q]
Harry Putnam writes: > Mick writes: > >> On Wednesday 23 September 2009, Willie Wong wrote: >>> On Tue, Sep 22, 2009 at 04:37:15PM -0500, Penguin Lover Harry Putnam >> squawked: >>> > Can any one tell me how to copy with mouse (really the left mouse >>> > button provided on the touchpad) but paste from keyboard while in text >>> > (console) mode? Or using the touch pad thing somehow. I've tried >>> > pressing both touchpad buttons at once to emulate middle mouse but it >>> > has no effect. >>> >>> In console the copy-paste is provided by GPM. And I thought GPM paste >>> is right mouse key, not middle key. And I am also pretty sure that GPM >>> does not do third button emulation the way X does. >>> >>> I think a possibility is that you have plugged in and used a mouse >>> with three buttons. This forced gpm into 3 button mode, so that the >>> middle button becomes paste and right button is extend selection. Then >>> you poor two-button touchpad has no more paste. >>> >>> To prevent that edit /etc/conf.d/gpm and add APPEND="-2" to force gpm >>> to stick with 2-button mode. >> >> I am not running gpm to test; have you tried the obvious 'Insert', or >> Shift+I, >> or Shift+Insert? > > None of those do what I'm after here. > Someone answered that screen can do the kind of thing I talked about > ... and yet it can. ^yes
Re: [gentoo-user] Re: [ot General Textmode q]
On Tue, Sep 22, 2009 at 08:56:20PM -0500, Penguin Lover Harry Putnam squawked: > No one responded about the possibility of using the keyboard to do the > paste ... and man gpm is silent about it as well, does that mean its > not really possible to copy with mouse and paste with keyboard? I am not sure if it is even possible. This will require a server that catches all keystrokes from the keyboard, decide whether the keystrokes are to be sent to the application or to gpm, and act accordingly. If you are in a position to select text with your mouse, I think you are usually in a pretty good position to paste text with your mouse. (Even for one button mice, if you read 'info gpm', which has more details, I think it shows you how to rebind a Metakey+mouseclick combo.) You can of course do some sort of cut-and-paste on the console using readline. With the history buffer, if you have typed one long command before, you shouldn't need to do it again :) Else I'd just use Vim's built-in yank and pop with splitwindows. Maybe it is possible to integrate readline with gpm? Never thought of that, and google doesn't show anything useful either. W -- The longest word in the English language is the one that follows "And now a word from out sponsor." ~Jack Benny Sortir en Pantoufles: up 1020 days, 6:54
Re: [gentoo-user] Re: [ot General Textmode q]
On Tue, Sep 22, 2009 at 8:56 PM, Harry Putnam wrote: > No one responded about the possibility of using the keyboard to do the > paste ... and man gpm is silent about it as well, does that mean its > not really possible to copy with mouse and paste with keyboard? The only way I can think is to use "screen", which has keyboard-based text selection, copy and paste functionality (including selecting from the scrollback buffer).