Re: Xwinclip doesn't work with Konsole

2002-11-22 Thread Kercso Jozsef
Hi Harold!

No, it doesn't work correctly. The output is:
UnicodeSupport - Windows NT/2000/XP
## Select something in Konsole
SelectionNotify CompoundText (the selection remains selected)
## Click somewhere in X
SelectionNotify CompoundText
SelectionNotify UTF8
## Click somewhere in X
SelectionNotify UTF8
SelectionNotify - Reasserted ownership of ATOM: PRIMARY
SelectionNotify - Reasserted ownership of ATOM: CLIPBOARD

Now the paste in a Windows application works.
If I do not follow the procedure described, the paste operation
in a Windows application doesn't work.

The reversed procedure(copy from Windows to X) has a chaotic behaviour.
I can't reproduce it every time. Sometimes works, sometimes not.

> Download this version of xwinclip and let me know if it works:
> http://www.msu.edu/~huntharo/xwin/xwinclip/xwinclip-20021121-1800.exe.bz2 (5 KiB)

> The faster you respond, the more likely I am to finish up this patch, and
> the happier I will be.

Best Regards
  Jozsef Kercso




RE: Xwinclip doesn't work with Konsole

2002-11-22 Thread Kercso Jozsef
Hi Chris

 > Can you build the xwinclip exe and use the dll supplied
 > (i've put the build_dll.sh in there as well)? Let me know what
 > happens (and the output).

The copy from X works just like I wrote in my previous mail to
Harold (see log1), but when I try to copy from Windows, the
results are unpredictable. (see log2)

Best Regards
   Jozsef Kercso



log1.zip
Description: Binary data


log2.zip
Description: Binary data


cygwin an windows 311

2002-11-22 Thread Hendrik Mueller
good morning!
incidently I stumbled in your offer for a free x-windows-server for 
ms-windows programs. The 'setup.exe' program I downloaded from your site does 
not seem to be willing to work in a win311 environment. I'm trying to find a 
working x-server that is working with win311 because my (lt's call it) older 
notebook in not willing to carry the load of a win95 distribution or higher. 
Is there a way to install cygwin working with win311 or do you know any other 
kind of x-server for free working in thus an old environment?
Thanky for your answer,
Hendrik Müller



Re: cygwin an windows 311

2002-11-22 Thread Wilhelm Person
I assume that Linux/BSD is out of the question...
/W

On Fri, 22 Nov 2002, Hendrik Mueller wrote:

> good morning!
> incidently I stumbled in your offer for a free x-windows-server for
> ms-windows programs. The 'setup.exe' program I downloaded from your site does
> not seem to be willing to work in a win311 environment. I'm trying to find a
> working x-server that is working with win311 because my (lt's call it) older
> notebook in not willing to carry the load of a win95 distribution or higher.
> Is there a way to install cygwin working with win311 or do you know any other
> kind of x-server for free working in thus an old environment?
> Thanky for your answer,
> Hendrik Müller
>

+---+
| Home:   http://wilper.cjb.net |
| E-mail: [EMAIL PROTECTED]|
+---+




RE: Xwinclip doesn't work with Konsole

2002-11-22 Thread Chris Twiner
Hi Chris



Can you build the xwinclip exe and use the dll supplied
(i've put the build_dll.sh in there as well)? Let me know what
happens (and the output).



The copy from X works just like I wrote in my previous mail to
Harold (see log1), but when I try to copy from Windows, the
results are unpredictable. (see log2)


Thanks Jozsef,

The output looks as I'd expect for Harolds reasoning.  I've put in his 
changes for selecting the CLIPBOARD (an issue with me for a while) output 
but I haven't made the thing work yet.  It recognises an owner and calls 
xconvertselection, then the flushxevents function is called but the 
XNextEvent doesn't show a new message. Bizarre.

I'll keep trying to get clipboard working properly maybe that will be 
enough.

chris

PS (the "wierd" behaviour with pasting back the windows clipboard is because 
it won't claim ownership unless a windows application has changed the 
clipboard since the last primary selection.  This is in my code only.  It 
makes logical sense but it doesn't work the way the old one did, as far as 
possible it leaves XWin to do it's thing, only claiming the primary 
selection once the clipboard has been changed).

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



Re: Xwinclip doesn't work with Konsole

2002-11-22 Thread Dr. Volker Zell
> "Harold" == Harold L Hunt,  writes:

Harold> Hmm...
Harold> xwinclip-Test06 actually works the exact same way with Emacs... I am
Harold> pretty sure this is just because Emacs 21 finally fixed the way that
Harold> the selections were handled.  So, I think we can now safely say that
Harold> if someone has an application that unhighlights the selection when
Harold> xwinclip is running:  fix the *?$%ing application!!!  :)

I know of 2 applications which unhighlight the selection. Xemacs and Nedit.
I just tested them with your xwinclip-20021121-1800.exe.

But I got a patched version of xwinclip from Chris Twiner once which works perfect
even with Xemacs and Nedit.

There must be an e-mail about this in the archive.

Ciao
  Volker




Re: Xwinclip doesn't work with Konsole

2002-11-22 Thread Chris Twiner
Hmm...


Indeed, the clipboard thing has been irritating me for a while, can't 
believe i didn't spot it. Either way I can't get the thing to work yet.  
When I call XConvertSelection on CLIPBOARD it says there is a message (from 
select) but then XNextEvent doesn't process any message, very wierd.  
Primary still works fine.

xwinclip-Test06 actually works the exact same way with Emacs... I am 
>pretty sure this is just because Emacs 21 finally fixed the way that >the 
selections were handled. So, I think we can now safely say that if >someone 
has an application that unhighlights the selection when >xwinclip is 
running: fix the *?$%ing application!!! :)

I'd have to disagree in a big way.  xterm, dtterm, nedit, netscape , and 
countless other X applictions that behave in the right way won't because 
xwinclip breaks the standard by reclaiming ownership.  I've tested your 
release with at least the above and it causes functionality issues with 
anything that uses the selection.

The next qt format will follow motif i.e. select is primary, ctrl+c (or 
alt+c etc) copies the highlighted text into the clipboard.  This is a very 
standard way of doing things, and more importantly it works properly.  
"Fixing" them to leave the selection up breaks the normal visual feedback 
you get with all standard X apps, not good at all.

   Arrgh... I am just confused now. Is the unhighlighting of >selections 
our problem anymore? I am starting to think that it is not.

It is our problem (well anyone who wants to use xwinclip) and it should be 
fixed.  The hook dll doesn't need to be used as XWin can notify the app 
itself (if you have it inbuilt into xwin then multiple instances of xwin 
won't work properly together (although I'm not sure they do anyway), i'm 
talking about running xwin more than once not a screen option).

I can remove the hook by patching xwin to send out WM_ACTIVATE message's to 
a single xwinclip instance (this of course can be run from within XWin 
anyway).  But I think that's not what you want either.

Chris

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



Re: cygwin an windows 311

2002-11-22 Thread Alexander Gottwald
On Fri, 22 Nov 2002, Hendrik Mueller wrote:

> good morning!
> incidently I stumbled in your offer for a free x-windows-server for 
> ms-windows programs. The 'setup.exe' program I downloaded from your site does 
> not seem to be willing to work in a win311 environment. I'm trying to find a 
> working x-server that is working with win311 because my (lt's call it) older 
> notebook in not willing to carry the load of a win95 distribution or higher. 
> Is there a way to install cygwin working with win311 or do you know any other 
> kind of x-server for free working in thus an old environment?

cygwin is not supported on win 3.11. This means that the Cygwin/XFree will not 
work either.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




RE: cygwin an windows 311

2002-11-22 Thread Vince Hoffman
Its possible that you could get this to work, http://www.jcraft.com/wiredx/ 
maybe.. if windows 3.11 java is up to the job. 
I'd be supprised though.

> -Original Message-
> From: Hendrik Mueller [mailto:[EMAIL PROTECTED]]
> Sent: 22 November 2002 10:49
> To: [EMAIL PROTECTED]
> Subject: cygwin an windows 311
> 
> 
> good morning!
> incidently I stumbled in your offer for a free x-windows-server for 
> ms-windows programs. The 'setup.exe' program I downloaded 
> from your site does 
> not seem to be willing to work in a win311 environment. I'm 
> trying to find a 
> working x-server that is working with win311 because my (lt's 
> call it) older 
> notebook in not willing to carry the load of a win95 
> distribution or higher. 
> Is there a way to install cygwin working with win311 or do 
> you know any other 
> kind of x-server for free working in thus an old environment?
> Thanky for your answer,
> Hendrik Müller
> 



SSH & XFree86

2002-11-22 Thread John Burkhart
To whomever may have the knowledge (aka HH?),

I am using XFree86 running on a win98 machine to access a remote Unix
system. My machine is behind a router, therefore when i run ssh with the
parameters : ssh -X -l username hostname
I get the follwing error:
Warning: No xauth data; using fake authentication data for X11 forwarding.

Subsequently the remote machine gives me a "can't open display" error
whenever I try to run anything like xmgr or even and xterm on the remote
machine. Do I need to use port forwarding? If so, how do I do this? The
router has a public IP address, but the IP on my computer is invisible to
the WAN as far as I can tell.

Thank you, john





Re: SSH & XFree86

2002-11-22 Thread Andrew Markebo
What is the variable DISPLAY set to on the unix-machines?? 

What is the variable DISPLAY set to in the terminal you do the ssh -X
command from?

/Andy

/ John Burkhart <[EMAIL PROTECTED]> wrote:
| To whomever may have the knowledge (aka HH?),
>
| I am using XFree86 running on a win98 machine to access a remote Unix
| system. My machine is behind a router, therefore when i run ssh with the
| parameters : ssh -X -l username hostname
| I get the follwing error:
| Warning: No xauth data; using fake authentication data for X11 forwarding.
>
| Subsequently the remote machine gives me a "can't open display" error
| whenever I try to run anything like xmgr or even and xterm on the remote
| machine. Do I need to use port forwarding? If so, how do I do this? The
| router has a public IP address, but the IP on my computer is invisible to
| the WAN as far as I can tell.
>
| Thank you, john
>
>
>

-- 
 The eye of the beholder rests on the beauty!



Re: Xwinclip doesn't work with Konsole

2002-11-22 Thread Harold L Hunt II
Chris,


I'd have to disagree in a big way.  xterm, dtterm, nedit, netscape , 
and countless other X applictions that behave in the right way won't 
because xwinclip breaks the standard by reclaiming ownership.  I've 
tested your release with at least the above and it causes 
functionality issues with anything that uses the selection.

Run these same applications with xclipboard and see if the behavior is 
similar.  If it is, then I say it is simply a problem with the way that 
the X clipboard system is designed and we leave it at that.

If, on the other hand, the applications work fine with xclipboard, then 
maybe we will be able to do a better job of handling the selections.

We are not doing a very good job of figuring out how the commercial X 
applications out there handle clipboard integration.  They *never* grab 
the primary selection and they always have the most recently selected 
text from either clipboard.  Maybe they are doing this through polling, 
which we are trying to avoid, but I am not even sure how polling would 
solve the problem (unless you poll for the selection, compare it to the 
old data, and act accordingly, which would put a huge demand on network 
bandwidth...).

It is our problem (well anyone who wants to use xwinclip) and it 
should be fixed.  The hook dll doesn't need to be used as XWin can 
notify the app itself (if you have it inbuilt into xwin then multiple 
instances of xwin won't work properly together (although I'm not sure 
they do anyway), i'm talking about running xwin more than once not a 
screen option).

Oh please.  Integrating the clipboard support into the XWin.exe 
executable is not going to forbid it from working with multiple screens 
run by one executable, nor is it going to forbid multiple instances of 
XWin.exe.  You might have to program a little more carefully, but there 
is nothing about having the functionality present in XWin.exe that 
prevents anything from working correctly.

You have mentioned before that X-Win32 is using an Xt-app for their 
clipboard support... but I have never noticed such an app.  I have 
always been under the impression that the cipbard support is integrated 
into X-Win32's executable.  In any case, we are unlikely to be able to 
use Xt because we have to interleave handling of Win32 message with X 
events... trying to do that with Xt may be difficult if not impossible. 
There is nothing to say that we cannot handle the selections exactly as 
Xt does, and doing so does not mean that we actually have to use Xt. 
Shoot... we have the source code to Xt, so it isn't like something is 
stopping us from understanding what Xt is doing.

I can remove the hook by patching xwin to send out WM_ACTIVATE 
message's to a single xwinclip instance (this of course can be run 
from within XWin anyway).  But I think that's not what you want either. 

I just want a solution that works identically to the dozen or so 
commerical implementations that have conquered this very problem.  I 
won't be satisfied until we have clipboard support that rivals the 
commercial X Servers for MS Windows.

Harold



RE: SSH & XFree86

2002-11-22 Thread Jean-Claude Gervais
Hi John,

I use SSH the same way that you do, and although I can't be sure to solve
your problem, here are a couple recommendations;

Use the -C parameter with SSH so that it will compress your data, this will
speed your sessions.
Make sure your DISPLAY environment variable is set to 127.0.0.1:0.0 in your
local shell before issuing your connection request, because if it is not,
you won't be able to receive the X stream back along the SSH conduit.

Other than that, I can't think of anything...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of John Burkhart
Sent: Friday, November 22, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: SSH & XFree86

To whomever may have the knowledge (aka HH?),

I am using XFree86 running on a win98 machine to access a remote Unix
system. My machine is behind a router, therefore when i run ssh with the
parameters : ssh -X -l username hostname
I get the follwing error:
Warning: No xauth data; using fake authentication data for X11 forwarding.

Subsequently the remote machine gives me a "can't open display" error
whenever I try to run anything like xmgr or even and xterm on the remote
machine. Do I need to use port forwarding? If so, how do I do this? The
router has a public IP address, but the IP on my computer is invisible to
the WAN as far as I can tell.

Thank you, john




Re: SSH & XFree86

2002-11-22 Thread Harold L Hunt II
John,

The Cygwin/XFree86 User's Guide explains a procedure that works for 
using SSH with X11 forwarding:

http://xfree86.cygwin.com/docs/ug/using-remote-apps.html#using-remote-apps-ssh


I wrote up some notes on why SSH fails for various reasons and how to 
avoid those failures:

http://cygwin.com/ml/cygwin-xfree/2002-10/msg00065.html


Your particular failure seems to be that the DISPLAY variable is not 
defined when you run the ``ssh'' command.  I suspect that you are 
launching Cygwin/XFree86, but instead of running ssh from your xterm you 
are running ssh from another Cygwin bash shell that does not have 
DISPLAY defined.  Try running ssh from the xterm in Cygwin/XFree86 and I 
bet it will work.

Harold

John Burkhart wrote:

To whomever may have the knowledge (aka HH?),

I am using XFree86 running on a win98 machine to access a remote Unix
system. My machine is behind a router, therefore when i run ssh with the
parameters : ssh -X -l username hostname
I get the follwing error:
Warning: No xauth data; using fake authentication data for X11 forwarding.

Subsequently the remote machine gives me a "can't open display" error
whenever I try to run anything like xmgr or even and xterm on the remote
machine. Do I need to use port forwarding? If so, how do I do this? The
router has a public IP address, but the IP on my computer is invisible to
the WAN as far as I can tell.

Thank you, john


 





Re: SSH & XFree86

2002-11-22 Thread RPellowski
The latest ssh (3.5p1-2) has problems.  
It breaks connections with "bad packet length",
reporting a large positive or negative number.
The previous version (3.5p1-1) does not do this.

Rob Pellowski