RE: Copying and pasting text w/ mouse

2003-08-15 Thread Charles Howse
> Here's a thought. What happens when you switch away then switch back 
> kill moused then restart moused? I'm thinking that maybe a cron job 
> could be created to check mouse states and kill then restart moused.

Very interesting...

#!/usr/local/bin/bash
# Kill and restart moused

ps -wax | grep moused > /dev/null 2>&1
if [ $? -eq 0 ] ; then
m=`ps -wax | grep moused | cut -d" " -f3`
kill $m
if [ $? -eq 0 ] ; then 
echo "Killed mouse daemon"
else
echo "Unable to kill mouse daemon"
exit
fi
fi
moused -p /dev/psm0 -t auto
if [ $? -eq 0 ] ; then
echo "Restarted mouse daemon successfully"
else
echo "Unable to restart mouse daemon"
fi


This works in principle, but I have to do it 4 or 5 times after
switching back from windows.
Any time I move the mouse, things go haywire, until I finally reset it
enough times.
I'm satisfied for the time being, thanks for the suggestion, and thanks
to everyone who replied!


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Copying and pasting text w/ mouse

2003-08-15 Thread K Anderson


Charles Howse wrote:
For the sake of testing, put the mouse directly to the FreeBSD system 
and reboot (well you might not actually have to reboot but 
check to see 
if moused is running and if so kill it and then restart it).


That worked fine.  The problem must be the KVM, as I suspected.
Knowing that, I reconnected the mouse to the KVM, switched to Windows
and back to FBSD, same problem.

Check out the man page for moused for further help with 
mousercizing and 
various options.


No joy.


I'm not sure if this is the problem but PS/2 mices are (IMHO) finicky 
when disconnected. If your KVM switch has a reset then press 
it and see 
if that gives FreeBSD a hand in preventing your caffinated mouse.


No reset button.


Don't know if it will do what you want but check out 'man 
cut' and 'man 
paste'


No joy, cut is for retrieving fields and characters from a file, paste
is for inserting text from a file to a file or to the console.
Oh, well...
Here's a thought. What happens when you switch away then switch back 
kill moused then restart moused? I'm thinking that maybe a cron job 
could be created to check mouse states and kill then restart moused.

Maybe put moused in foreground and debug and see what happens as well it 
might offer some information that could lead you to a google search. :)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Copying and pasting text w/ mouse

2003-08-15 Thread Charles Howse
> For the sake of testing, put the mouse directly to the FreeBSD system 
> and reboot (well you might not actually have to reboot but 
> check to see 
> if moused is running and if so kill it and then restart it).

That worked fine.  The problem must be the KVM, as I suspected.
Knowing that, I reconnected the mouse to the KVM, switched to Windows
and back to FBSD, same problem.

> Check out the man page for moused for further help with 
> mousercizing and 
> various options.

No joy.

> I'm not sure if this is the problem but PS/2 mices are (IMHO) finicky 
> when disconnected. If your KVM switch has a reset then press 
> it and see 
> if that gives FreeBSD a hand in preventing your caffinated mouse.

No reset button.

> Don't know if it will do what you want but check out 'man 
> cut' and 'man 
> paste'

No joy, cut is for retrieving fields and characters from a file, paste
is for inserting text from a file to a file or to the console.

Oh, well...


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Copying and pasting text w/ mouse

2003-08-15 Thread K Anderson


Charles Howse wrote:
Hi there,


Hi, thanks for the reply.


I have a Logitech trackman marble + (two buttons and a third that is 
also the wheel) and I just left-drag then middle button (the wheel) 
click. You might have the same thing if you have a wheel on 
yours if not 
then you should be able to press both buttons (left & right) 
if you are 
using 3rd button emulation and that should do it for you.


I bet I'm going to run into trouble on this, I have a Belkin KVM that I
use to switch between 3 computers on my desk.
I've had mouse issues with it in the past, i.e. if I configure it for a
scroll mouse in a Linux gui, then switch to Windows, the mouse pointer
jumps all over the screen, completely unusable.
I just tried setting it up again in sysinstall, and it's jumping
everywhere and corrupting the display, I have to ^C to recover control
of console before I can get out of mouse configuration.
Too bad, I have no issues with mousing on my Redhat 9 box, or my XP box,
is there any way to copy and paste w/o mouse in console?
Any way to trick mouse config in sysinstall?  It seems like the only
PS/2 options are the defaults. 
For the sake of testing, put the mouse directly to the FreeBSD system 
and reboot (well you might not actually have to reboot but check to see 
if moused is running and if so kill it and then restart it).

If you have a serial mouse then figure out what port it is on then issue 
a 'moused -p /dev/cuaa0 -t intellimouse'  (if you are unsure of your 
mouse type then change intellimouse to auto. This is on the assumption 
that your mouse is on serial port 1).

Check out the man page for moused for further help with mousercizing and 
various options.

I'm not sure if this is the problem but PS/2 mices are (IMHO) finicky 
when disconnected. If your KVM switch has a reset then press it and see 
if that gives FreeBSD a hand in preventing your caffinated mouse.

Don't know if it will do what you want but check out 'man cut' and 'man 
paste'

Hope something here helps.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Copying and pasting text w/ mouse

2003-08-15 Thread Robert Watson

On Fri, 15 Aug 2003, Charles Howse wrote:

> FreeBSD 4.8-RELEASE, no gui. 
> 
> In Linux, I can left-drag to select text in the console, then
> right-click to paste it to the command line.  My FreeBSD Unleashed book
> says the mouse can be configured to copy and paste from the console in
> FreeBSD, but darned if I can figure out how to do it. 
> 
> I've used sysinstall to configure the mouse, I get a Windows-style mouse
> pointer, I can select text by dragging, but can't paste. 
> 
> Is there a magic word (Abra-ca-dabra!) one has to mumble to paste in the
> console? 

The two typical tricks are (1) press the middle mouse button (or emulated
middle mouse button), or (2) press shift-insert on the keyboard.  If you
don't have a middle mouse button, you can add/merge the following line to
your /etc/rc.conf:

moused_flags="-3"

This will emulate the three button mouse by having you press both mouse
buttons to indicate a third button click.

Or, if you're using a USB mouse, you'll need to update the equivilent
lines in usbd.conf.  I believe the shift-insert support has been merged --
this is my personal favorite pasting mechanism, and it also works with
good xterm implementations.

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Network Associates Laboratories


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Copying and pasting text w/ mouse

2003-08-15 Thread Charles Howse
> Hi there,

Hi, thanks for the reply.

> I have a Logitech trackman marble + (two buttons and a third that is 
> also the wheel) and I just left-drag then middle button (the wheel) 
> click. You might have the same thing if you have a wheel on 
> yours if not 
> then you should be able to press both buttons (left & right) 
> if you are 
> using 3rd button emulation and that should do it for you.

I bet I'm going to run into trouble on this, I have a Belkin KVM that I
use to switch between 3 computers on my desk.
I've had mouse issues with it in the past, i.e. if I configure it for a
scroll mouse in a Linux gui, then switch to Windows, the mouse pointer
jumps all over the screen, completely unusable.

I just tried setting it up again in sysinstall, and it's jumping
everywhere and corrupting the display, I have to ^C to recover control
of console before I can get out of mouse configuration.

Too bad, I have no issues with mousing on my Redhat 9 box, or my XP box,
is there any way to copy and paste w/o mouse in console?

Any way to trick mouse config in sysinstall?  It seems like the only
PS/2 options are the defaults. 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Copying and pasting text w/ mouse

2003-08-15 Thread K Anderson


Charles Howse wrote:
Hi,

FreeBSD 4.8-RELEASE, no gui.

In Linux, I can left-drag to select text in the console, then
right-click to paste it to the command line.
My FreeBSD Unleashed book says the mouse can be configured to copy and
paste from the console in FreeBSD, but darned if I can figure out how to
do it.
I've used sysinstall to configure the mouse, I get a Windows-style mouse
pointer, I can select text by dragging, but can't paste.
Is there a magic word (Abra-ca-dabra!) one has to mumble to paste in the
console?


Thanks,
Charles
Hi there,

I have a Logitech trackman marble + (two buttons and a third that is 
also the wheel) and I just left-drag then middle button (the wheel) 
click. You might have the same thing if you have a wheel on yours if not 
then you should be able to press both buttons (left & right) if you are 
using 3rd button emulation and that should do it for you.

HTH

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"