Newbie Xboard Question

Discussion of chess software programming and technical issues.

Moderator: Ras

gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Newbie Xboard Question

Post by gatoruss »

I have been fiddling around with xboard, running it on W11, using the windows subsystem linus (wsl2). I am configuring it for use as a game viewer.

Whenever I start the program, there is a startup message (announcement) regarding what happens when one "right clicks" on a menu. The announcement disappears when one clicks on a board square. I am looking for a way to disable this dialogue/announcement, to no avail. I notice, however, that the announcement DOES NOT appear in winboard at startup.

Any thoughts on where how the announcement can be disabled?

Thanks in advance!
User avatar
hgm
Posts: 28480
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Newbie Xboard Question

Post by hgm »

In the settings file there is a string option -messageSuppress, and a non-empty value for that would suppress the appearance of this message. Normally the start of XBoard or the use of this feature should assign a value to this option, so that it would only appear on the first-time use.

But it seems in your case XBoard does not save its setting. So the option remains in its initial (empty) state, and each time you start XBoard it then displays the message.
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

Thanks for your reply!

In my .xboardrc file, there is the following line:

Code: Select all

"-suppressMessage ""
As I understand your reply, I should change this line to something like:

Code: Select all

"-suppressMessage "something"
Am I getting warm? :-)

Seriously, thank you for your time.
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

That did the trick!

Thanks again!
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

Well I jumped the gun. It worked a few times, and now the announcement/message is back. Yet, .xboardrc contains:

Code: Select all

"-suppressMessage "something"
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

In my wsl distro the is a file called:

Code: Select all

"\\wsl.localhost\Debian\etc\xboard\xboard.conf"
In this file there is the following code, I found the following code:

Code: Select all

; Anouncement to make at startup
;
-startupMessage {Right-clicking menu item or
dialog text pops up help on it}
That file cannot be edited. As an experiment, I placed the code below into .xboardrc and when I opened xboard "false" was in the popup message and the next time I opened xboard the original message had returned.

Code: Select all

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

Re: Newbie Xboard Question

Post by hgm »

The way XBoard settings work is that the xboard.conf 'master settings file' in etc/xboard/ contains a -settingsFile option which causes it to read the current user's .xboardrc settings file. Which will then overrule the settings in the master settings file, and also becomes the place where XBoard saves its settings on exit. So it should always be sufficient to change the -suppressMessage option in .xboardrc.

But you mentioned you configured XBoard as geme viewer, and what you see might be a result of how exactly you did that. Because one settings file can refer to another for overruling earlier specified option settings, the settings that are actually operational might not always be in the place where you think they are.
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

Thank you for your reply.

I am running the following bash command to start xboard:

Code: Select all

xboard -ncp -boardSize "Large" -xautoflip -flip -lgf mygamefile -lgi -mode EditGame
I have also tried:

Code: Select all

xboard -ncp -boardSize "Large" -xautoflip -flip -lgf mygamefile -lgi -mode EditGame -messageSuppress "something"
But neither opens xboard without the startup announcement.

It is interesting that after the first time I changed .xboardrc to change

Code: Select all

-messageSuppress ""
to

Code: Select all

-messageSuppress "something"
, xboard opened without the startup anouncement, but every time after that xboard opened with the startup announcement ntwithstanding that .xboardrc contained

Code: Select all

-messageSuppress "something"
.
User avatar
hgm
Posts: 28480
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Newbie Xboard Question

Post by hgm »

OK, I was wrong. (It was a long time ago I implemented this...) To suppress the message -messageSuppress should not be just anything, but a sub-string of the message you want to suppress.
gatoruss
Posts: 7
Joined: Wed Mar 18, 2026 6:15 pm
Full name: Russell Hintze

Re: Newbie Xboard Question

Post by gatoruss »

Thank you! I added the line below to .xboardrc did the trick, and .xboard did not save over this setting upon exiting. Thanks, again!

Code: Select all

-messageSuppress "Right-clicking menu item or dialog text pops up help on it"