Changing middle mouse button for pasting to right mouse button in rxvt

2008-03-14 Thread Suan
Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings
from the middle button for pasting to the right button. The main reason why I
want to do this is because my laptop doesn't have a middle mouse button. Thanks
for any help!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Changing middle mouse button for pasting to right mouse button in rxvt

2008-03-14 Thread Suan
Jerry D. Hedden  cpan.org> writes:

> 
> > my laptop doesn't have a middle mouse button.
> Pressing the left and right mouse buttons at the same time has the same 
> effect.
> 
> 
I read that somewhere earlier and tried itdoesn't work though




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Changing middle mouse button for pasting to right mouse button in rxvt

2008-03-14 Thread Suan
DePriest, Jason R.  gmail.com> writes:

> 
> On Fri, Mar 14, 2008 at 7:43 PM, Suan <> wrote:
> > Jerry D. Hedden  cpan.org> writes:
> >
> >  >
> >  > > my laptop doesn't have a middle mouse button.
> >  > Pressing the left and right mouse buttons at the same time has the same
effect.
> >  >
> >  >
> >  I read that somewhere earlier and tried itdoesn't work though
> >
> >
> 
> Can you send your cygcheck -s -v -r information?
> 
> Using both buttons to simulate middle-click works for me in rxvt.
> 
> -Jason
> 
> 
Ok, here it is:
===

Cygwin Configuration Diagnostics
Current System Time: Fri Mar 14 23:13:21 2008

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Program Files\Windows Resource Kits\Tools\
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\system32\wbem
c:\Program Files\MATLAB\R2007a\bin
c:\Program Files\Java\jdk\bin
c:\Program Files\MATLAB\R2007a\bin\win32
c:\OrCAD\OrCAD_10.3\tools\fet\bin
c:\OrCAD\OrCAD_10.3\tools\pcb\bin
c:\OrCAD\OrCAD_10.3\tools\specctra\bin
c:\OrCAD\OrCAD_10.3\tools\PSpice\Library
c:\OrCAD\OrCAD_10.3\tools\bin
c:\OrCAD\OrCAD_10.3\tools\Capture
c:\Program Files\QuickTime\QTSystem\

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(sonic)GID: 513(None)
0(root) 513(None)   
544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(sonic)GID: 513(None)
0(root) 513(None)   
544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'sonic'
PWD = '/home/sonic'
HOME = '/home/sonic'
MAKE_MODE = 'unix'

HOMEPATH = '\Documents and Settings\sonic'
MANPATH = 
'/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\sonic\Application 
Data'
HOSTNAME = 'horusss2'
CDSROOT = 'C:\OrCAD\OrCAD_10.3'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 72 Stepping 
2, AuthenticAMD'
WINDIR = 'C:\WINDOWS'
WINDOWID = '6896800'
OLDPWD = '/usr/bin'
USERDOMAIN = 'HORUSSS2'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/cygdrive/c/DOCUME~1/sonic/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
QTJAVA = 'C:\Program 
Files\Java\jre1.6.0_03\lib\ext\QTJava.zip'
USERNAME = 'sonic'
PROCESSOR_LEVEL = '15'
LSC_INI_PATH = 'C:\lsc_env'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Documents and Settings\sonic'
CLIENTNAME = 'Console'
PS1 = '\[\e]0;[EMAIL PROTECTED] 
\[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\HORUSSS2'
PROCESSOR_ARCHITECTURE = 'x86'
LM_LICENSE_FILE = 
'C:\ispLEVER_Classic\license\license.dat;C:\ispTOOLS7_0_STR
T\license\license.dat;C:\Flexlm\cadence_orcad_103.dat'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
COLORFGBG = '0;default;15'
PATHEXT = 
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
CONCEPT_INST_DIR = 'C:\OrCAD\OrCAD_10.3'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/sonic/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'HP Deskjet F300 series'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '4802'
CLASSPATH = '.;C:\Program 
Files\Java\jre1.6.0_03\lib\ext\QTJava.zip'
CDS_LIC_FILE = 'C:\Flexlm\cadence_orcad_103.dat'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
DISPLAY = ':0'
NUMBER_OF_PROCESSORS = '2'
SESSIONNAME = 'Console'
COMPUTERNAME = 'HORUSSS2'
COLORTERM = 'rxvt-xpm'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts 
v2
HKEY_CURRENT_USER\Software\Cygnus 
Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus 
Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus 
Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus 
Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  

Re: Changing middle mouse button for pasting to right mouse button in rxvt

2008-03-15 Thread Suan
Thanks Jason, I tried changing my TERM to the same as yours,
as it should be,
and that didn't help. But from your post I learnt that I can 
just use
shift-left-click, and that should suffice.





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



readline clash with bash/PS1 escapes

2005-08-24 Thread Suan Yong
Hi,

After a recent cygwin update (including one just today), I'm seeing a bug
in the readline completion that I finally tracked down to the control
sequences in my PS1 for setting the title bar and coloring my prompt.  It
looks like the '\[' and '\]' delimeters are screwing it up.  Here are the
symptoms (~> is my prompt).

  ~>env | fgrep PS1
  PS1=\[\033]0;\W\007\]\[\033[32m\]\w>\[\033[0m\]

When I type: ls .
I see:

  ~>ls .
  ./ .bash_history  .cvsrc .ssh/  .vimrc
  ../.bash_profile  .history   .vim/
  .Xdefaults .bashrc.inputrc   .viminfo
  ~>ls . .
--^-
Notice the extra " ." in the re-rendered line (^ indicates the prompt
position).  Something is clearly out of sync.
For example, if I then type: Control-U
I see:

  ~>ls .
  ./ .bash_history  .cvsrc .ssh/  .vimrc
  ../.bash_profile  .history   .vim/
  .Xdefaults .bashrc.inputrc   .viminfo
  ~>ls
^---
where the prompt is overlapping the "ghost" letters "ls", which aren't
really in the buffer.  E.g., if I then type: p
I see:

  ~>ls .
  ./ .bash_history  .cvsrc .ssh/  .vimrc
  ../.bash_profile  .history   .vim/
  .Xdefaults .bashrc.inputrc   .viminfo
  ~>ps
  bash: p: command not found
  ~>
^---
After some experimentation, I found that if I removed the '\[' and '\]'
delimiters from my PS1, the errant behavior goes away.  The
control sequences evidently still work, even though the man page for bash
suggests that they really should be enclosed within \[ \].

Suan

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/