updated documenation
[xboard.git] / manual / html_node / File-Menu.html
1 <html lang="en">
2 <head>
3 <title>File Menu - XBoard</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="XBoard">
6 <meta name="generator" content="makeinfo 4.12">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Menus.html#Menus" title="Menus">
9 <link rel="next" href="Mode-Menu.html#Mode-Menu" title="Mode Menu">
10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11 <meta http-equiv="Content-Style-Type" content="text/css">
12 <style type="text/css"><!--
13   pre.display { font-family:inherit }
14   pre.format  { font-family:inherit }
15   pre.smalldisplay { font-family:inherit; font-size:smaller }
16   pre.smallformat  { font-family:inherit; font-size:smaller }
17   pre.smallexample { font-size:smaller }
18   pre.smalllisp    { font-size:smaller }
19   span.sc    { font-variant:small-caps }
20   span.roman { font-family:serif; font-weight:normal; } 
21   span.sansserif { font-family:sans-serif; font-weight:normal; } 
22 --></style>
23 </head>
24 <body>
25 <div class="node">
26 <p>
27 <a name="File-Menu"></a>
28 Next:&nbsp;<a rel="next" accesskey="n" href="Mode-Menu.html#Mode-Menu">Mode Menu</a>,
29 Up:&nbsp;<a rel="up" accesskey="u" href="Menus.html#Menus">Menus</a>
30 <hr>
31 </div>
32
33 <h3 class="section">2.1 File Menu</h3>
34
35 <p><a name="index-File-Menu-4"></a><a name="index-Menu_002c-File-5"></a>
36      <dl>
37 <dt>New Game<dd><a name="index-New-Game_002c-Menu-Item-6"></a>Resets XBoard and the chess engine to the beginning of a new chess
38 game. The <kbd>r</kbd> key is a keyboard equivalent. In Internet Chess
39 Server mode, clears the current state of XBoard, then
40 resynchronizes with the ICS by sending a refresh command. If you want to
41 stop playing, observing, or examining an ICS game, use an
42 appropriate command from the Action menu, not &lsquo;<samp><span class="samp">New Game</span></samp>&rsquo;. 
43 See <a href="Action-Menu.html#Action-Menu">Action Menu</a>. 
44 <br><dt>New Shuffle Game<dd><a name="index-New-Shuffle-Game_002c-Menu-Item-7"></a>Similar to &lsquo;<samp><span class="samp">New Game</span></samp>&rsquo;, but allows you to specify a particular initial position
45 (according to a standardized numbering system)
46 in chess variants which use randomized opening positions (e.g. Chess960). 
47 The selected opening position will persistently be chosen on any following
48 New Game command until you use this menu to select another. Selecting
49 position number -1 will produce a newly randomized position on any new game. 
50 Using this menu item in variants that normally do not shuffle their opening position
51 does cause these variants to become shuffle variants until you use the
52 &lsquo;<samp><span class="samp">New Shuffle Game</span></samp>&rsquo; menu to explicitly switch the randomization off,
53 or select a new variant. 
54 <br><dt>New Variant<dd><a name="index-New-variant_002c-Menu-Item-8"></a>Allows you to select a new chess variant in non-ICS mode. 
55 (In ICS play, the ICS is responsible for deciding which variant will be played,
56 and XBoard adapts automatically.) If you play with an engine, the engine must
57 be able to play the selected variant, or the command will be ignored. 
58 XBoard supports all major variants, such as xiangqi, shogi, chess, chess960,
59 Capablanca Chess, shatranj, crazyhouse, bughouse. 
60 <br><dt>Load Game<dd><a name="index-Load-Game_002c-Menu-Item-9"></a>Plays a game from a record file. The <kbd>g</kbd> key is a keyboard equivalent. 
61 A pop-up dialog prompts you for the file name. If the file contains more
62 than one game, a second pop-up dialog
63 displays a list of games (with information drawn from their PGN tags, if
64 any), and you can select the one you want. Alternatively, you can load the
65 Nth game in the file directly, by typing the number <kbd>N</kbd> after the
66 file name, separated by a space.
67
68      <p>The game file parser will accept PGN (portable game notation),
69 or in fact almost any file that contains moves in algebraic
70 notation. 
71 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
72 is accepted for piece-drops in bughouse games;
73 this is a nonstandard extension to PGN. 
74 If the file includes a PGN position (FEN tag), or an old-style
75 XBoard position diagram bracketed by &lsquo;<samp><span class="samp">[--</span></samp>&rsquo; and &lsquo;<samp><span class="samp">--]</span></samp>&rsquo;
76 before the first move, the game starts from that position. Text
77 enclosed in parentheses, square brackets, or curly braces is assumed to
78 be commentary and is displayed in a pop-up window. Any other
79 text in the file is ignored. PGN variations (enclosed in
80 parentheses) are treated as comments; XBoard is not able to walk
81 variation trees. 
82 The nonstandard PGN tag [Variant "varname"] functions similarly to
83 the -variant command-line option (see below), allowing games in certain chess
84 variants to be loaded.  There is also a heuristic to
85 recognize chess variants from the Event tag, by looking for the strings
86 that the Internet Chess Servers put there when saving variant ("wild") games. 
87 <br><dt>Load Next Game<dd><a name="index-Load-Next-Game_002c-Menu-Item-10"></a>Loads the next game from the last game record file you loaded. 
88 The shifted <kbd>N</kbd> key is a keyboard equivalent. 
89 <br><dt>Load Previous Game<dd><a name="index-Load-Previous-Game_002c-Menu-Item-11"></a>Loads the previous game from the last game record file you
90 loaded.  The shifted <kbd>P</kbd> key is a keyboard equivalent. 
91 Not available if the last game was loaded from a pipe. 
92 <br><dt>Reload Same Game<dd><a name="index-Reload-Same-Game_002c-Menu-Item-12"></a>Reloads the last game you loaded. 
93 Not available if the last game was loaded from a pipe. 
94 <br><dt>Save Game<dd><a name="index-Save-Game_002c-Menu-Item-13"></a>Appends a record of the current game to a file. 
95 A pop-up dialog
96 prompts you for the file name. If the game did not begin with
97 the standard starting position, the game file includes the
98 starting position used. Games are saved in the PGN (portable
99 game notation) format, unless the oldSaveStyle option is true,
100 in which case they are saved in an older format that is specific
101 to XBoard. Both formats are human-readable, and both can be
102 read back by the &lsquo;<samp><span class="samp">Load Game</span></samp>&rsquo; command. 
103 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
104 is accepted for piece-drops in bughouse games;
105 this is a nonstandard extension to PGN. 
106 <br><dt>Copy Game<dd><a name="index-Copy-Game_002c-Menu-Item-14"></a>Copies a record of the current game to an internal clipboard in PGN
107 format and sets the X selection to the game text.  The game can be
108 pasted to another application (such as a text editor or another copy
109 of XBoard) using that application's paste command.  In many X
110 applications, such as xterm and emacs, the middle mouse button can be
111 used for pasting; in XBoard, you must use the Paste Game command. 
112 <br><dt>Paste Game<dd><a name="index-Paste-Game_002c-Menu-Item-15"></a>Interprets the current X selection as a game record and loads it, as
113 with Load Game. 
114 <br><dt>Load Position<dd><a name="index-Load-Position_002c-Menu-Item-16"></a>Sets up a position from a position file.  A pop-up dialog prompts
115 you for the file name. If the file contains more than one saved
116 position, and you want to load the Nth one, type the number N
117 after the file name, separated by a space. Position files must
118 be in FEN (Forsythe-Edwards notation), or in the format that the
119 Save Position command writes when oldSaveStyle is turned on. 
120 <br><dt>Load Next Position<dd><a name="index-Load-Next-Position_002c-Menu-Item-17"></a>Loads the next position from the last position file you loaded. 
121 <br><dt>Load Previous Position<dd><a name="index-Load-Previous-Position_002c-Menu-Item-18"></a>Loads the previous position from the last position file you
122 loaded.  Not available if the last position was loaded from a pipe. 
123 <br><dt>Reload Same Position<dd><a name="index-Reload-Same-Position_002c-Menu-Item-19"></a>Reloads the last position you loaded. 
124 Not available if the last position was loaded from a pipe. 
125 <br><dt>Save Position<dd><a name="index-Save-Game_002c-Menu-Item-20"></a>Appends a diagram of the current position to a file. 
126 A pop-up dialog
127 prompts you for the file name. Positions are saved in
128 FEN (Forsythe-Edwards notation) format unless the <code>oldSaveStyle</code>
129 option is true, in which case they are saved in an older,
130 human-readable format that is specific to XBoard. Both formats
131 can be read back by the &lsquo;<samp><span class="samp">Load Position</span></samp>&rsquo; command. 
132 <br><dt>Copy Position<dd><a name="index-Copy-Position_002c-Menu-Item-21"></a>Copies the current position to an internal clipboard in FEN format and
133 sets the X selection to the position text.  The position can be pasted
134 to another application (such as a text editor or another copy of
135 XBoard) using that application's paste command.  In many X
136 applications, such as xterm and emacs, the middle mouse button can be
137 used for pasting; in XBoard, you must use the Paste Position command. 
138 <br><dt>Paste Position<dd><a name="index-Paste-Position_002c-Menu-Item-22"></a>Interprets the current X selection as a FEN position and loads it, as
139 with Load Position. 
140 <br><dt>Mail Move<dt>Reload CMail Message<dd><a name="index-Mail-Move_002c-Menu-Item-23"></a><a name="index-Reload-CMail-Message_002c-Menu-Item-24"></a>See <a href="CMail.html#CMail">CMail</a>. 
141 <br><dt>Exit<dd><a name="index-Exit_002c-Menu-Item-25"></a>Exits from XBoard. The shifted <kbd>Q</kbd> key is a keyboard equivalent. 
142 </dl>
143
144    </body></html>
145