New XBoard alpha version. Please test!

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

BBauer wrote:Ok, I can copy and paste positions.
But I am not able to copy from engine output to clipboard.
Is there a possibillity to do that?
kind regards
Bernhard
You are right. I can select text in the engine-output window (this is a read-only text widget), but it does not want to copy to the clipboard. When it is selected, however, I can go to another window (e.g. the edit-comment window), and use Shift+Insert to paste the selected text there. I expect that this also would work for other X applications, not for gedit.
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

BBauer wrote:Ok, I can copy and paste positions.
But I am not able to copy from engine output to clipboard.
Is there a possibillity to do that?
OK, I think I fixed it. Through a horrible hack I added code to copy the selection to the clipboard when you type Ctrl-c when the corresponding engine-output text display has focus. (I even had to add code to allow it to get focus!)

This way I can now select text in the Engine-Output window and copy-paste it to gedit.

The new version is available from the same links as before. Please let me know if this patch causes trouble, or if there are other places where copy-paste does not work as it could be expected!
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: New XBoard alpha version. Please test!

Post by beachknight »

hgm wrote:
BBauer wrote:Ok, I can copy and paste positions.
But I am not able to copy from engine output to clipboard.
Is there a possibillity to do that?
OK, I think I fixed it. Through a horrible hack I added code to copy the selection to the clipboard when you type Ctrl-c when the corresponding engine-output text display has focus. (I even had to add code to allow it to get focus!)

This way I can now select text in the Engine-Output window and copy-paste it to gedit.

The new version is available from the same links as before. Please let me know if this patch causes trouble, or if there are other places where copy-paste does not work as it could be expected!
Could you please be more specific?

Do you mean:

http://www.open-aurec.com/wbforum/WinBo ... .4.4.1.zip

or

http://hgm.nubati.net/winboard.zip

Best,
hi, merhaba, hallo HT
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

This is for XBoard. In WinBoard this already worked. (Although I see now that I might have broken it. Copying the engine-output window now loses all linebreaks! Perhaps this carriage return that so annoyingly cluttered the XBoard display with ^M served a purpose after all...)

I meant the XBoard alpha versions at hgm.nubati.net and that at home.hccnet.nl I posted links to above.
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: New XBoard alpha version. Please test!

Post by beachknight »

hgm wrote:This is for XBoard. In WinBoard this already worked. (Although I see now that I might have broken it. Copying the engine-output window now loses all linebreaks! Perhaps this carriage return that so annoyingly cluttered the XBoard display with ^M served a purpose after all...)

I meant the XBoard alpha versions at hgm.nubati.net and that at home.hccnet.nl I posted links to above.
I have copy and paste problem in WinBoard too, also in Scid.
I'll download your alpha again and see what happens.

Best,
hi, merhaba, hallo HT
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

OK, I have now also replaced the winboard.zip at those locations, to again include the carriage return when writing to the engine-output display, so that copying from it also copies the line breaks.

This is how easy it is to introduce new bugs by curing others. The display looked perfectly normal without the CR, and I never got the idea it might break the possibility to copy it... :cry:
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: New XBoard alpha version. Please test!

Post by beachknight »

beachknight wrote:
hgm wrote:This is for XBoard. In WinBoard this already worked. (Although I see now that I might have broken it. Copying the engine-output window now loses all linebreaks! Perhaps this carriage return that so annoyingly cluttered the XBoard display with ^M served a purpose after all...)

I meant the XBoard alpha versions at hgm.nubati.net and that at home.hccnet.nl I posted links to above.
I have copy and paste problem in WinBoard too, also in Scid.
I'll download your alpha again and see what happens.

Best,
http://www.open-aurec.com/wbforum/WinBo ... .4.4.1.zip

dated 20091202

On the move history section:

Go to the end of the moves.
Select the move text you want to copy.
Copy : CTRL-C

Go to notepad window:
Paste : SHIFT-Ins

Yes. All is ok. Thank you so much.

I'll test now Scid 4.0 whether it has this feature.

Best,
hi, merhaba, hallo HT
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

Note that 4.4.1 at WB forum is the stable version, not the alpha. The latter can only be obtined from hgm.nubati.net (at the bottom of the list of download links) or http://home.hccnet.nl/h.g.muller/winboard.zip .

In 4.4.1 it was indeed OK. (AFAIK it has been OK ever since Winboard_x.) But in the previous alpha I had broken it, it the attempt to repair the EngineOutput display of XBoard: the latter was printing annoying ^M at the end of every PV line, which could be traced to the fact that the (shared) back-end code appended CR+LF to the Thinking Output before inserting it in the display. Linux did not like the CR, so I removed it after having checked that this did have no ill effects on WB. But apparently I did not check careful enough, I only checked if the diplay looked normal. Not if you could copy-paste it. I guess it should be considered a Windows bug that when you copy-paste you don't get back something that looks like it originally did, but that you need some hidden CR in it to make it work correctly. Well, such is life of the cross-platform programmer... :evil:

Everything should work now in the current alpha, however.
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: New XBoard alpha version. Please test!

Post by beachknight »

hgm wrote:Note that 4.4.1 at WB forum is the stable version, not the alpha. The latter can only be obtined from hgm.nubati.net (at the bottom of the list of download links) or http://home.hccnet.nl/h.g.muller/winboard.zip .

In 4.4.1 it was indeed OK. (AFAIK it has been OK ever since Winboard_x.) But in the previous alpha I had broken it, it the attempt to repair the EngineOutput display of XBoard: the latter was printing annoying ^M at the end of every PV line, which could be traced to the fact that the (shared) back-end code appended CR+LF to the Thinking Output before inserting it in the display. Linux did not like the CR, so I removed it after having checked that this did have no ill effects on WB. But apparently I did not check careful enough, I only checked if the diplay looked normal. Not if you could copy-paste it. I guess it should be considered a Windows bug that when you copy-paste you don't get back something that looks like it originally did, but that you need some hidden CR in it to make it work correctly. Well, such is life of the cross-platform programmer... :evil:

Everything should work now in the current alpha, however.
The alpha --winboard.zip-- that I downloaded was dated 20091125,
not from today.

Best,
hi, merhaba, hallo HT
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: New XBoard alpha version. Please test!

Post by hgm »

I don't know from where you downloaded that (nubati or hccnet), and when, but that is not good. What was the size of the zip file. It should be 478,505 bytes. And when you click help->about it should say 4.20091204. I checked just to make sure, and this is the file on both servers.