139{
140#if defined(WITH_WINPR_JSON)
141 const std::string url = "https://wiki.libsdl.org/SDL" + std::to_string(version);
142 std::cout << "GLOBAL CONFIGURATION FILE" << std::endl;
143 std::cout << std::endl;
144 std::cout << " The SDL client supports some system defined configuration options."
145 << std::endl;
146 std::cout << " Settings are stored in JSON format" << std::endl;
147 std::cout << " The location is a system configuration file. Location for current machine is "
148 << SdlPref::instance()->get_pref_file(true) << std::endl;
149 std::cout << std::endl;
150 std::cout << " The following configuration options are supported:" << std::endl;
151 std::cout << std::endl;
152 std::cout << " isUserConfigEnabled" << std::endl;
153 std::cout << " Allows to enable/disable user specific configuration files." << std::endl;
154 std::cout << " Default enabled" << std::endl;
155 std::cout << std::endl;
156 std::cout << " allowCommandlineToOverride" << std::endl;
157 std::cout
158 << " Allows command line options to override values from the configuration files."
159 << std::endl;
160 std::cout << " Default enabled" << std::endl;
161 std::cout << std::endl;
162 std::cout << " All options of the following user configuration file are also supported here."
163 << std::endl;
164 std::cout << std::endl;
165
166 std::cout << "CONFIGURATION FILE" << std::endl;
167 std::cout << std::endl;
168 std::cout << " The SDL client supports some user defined configuration options." << std::endl;
169 std::cout << " Settings are stored in JSON format" << std::endl;
170 std::cout << " The location is a per user file. Location for current user is "
171 << SdlPref::instance()->get_pref_file() << std::endl;
172 std::cout
173 << " The XDG_CONFIG_HOME environment variable can be used to override the base directory."
174 << std::endl;
175 std::cout << std::endl;
176 std::cout << " The following configuration options are supported:" << std::endl;
177 std::cout << std::endl;
178 std::cout << " SDL_KeyModMask" << std::endl;
179 std::cout << " Defines the key combination required for SDL client shortcuts."
180 << std::endl;
181 std::cout << " Default KMOD_RSHIFT" << std::endl;
182 std::cout << " An array of SDL_Keymod strings as defined at "
183 ""
184 << url << "/SDL_Keymod" << std::endl;
185 std::cout << std::endl;
186 std::cout << " SDL_Fullscreen" << std::endl;
187 std::cout << " Toggles client fullscreen state." << std::endl;
188 std::cout << " Default SDL_SCANCODE_RETURN." << std::endl;
189 std::cout << " A string as "
190 "defined at "
191 << url << "/SDLScancodeLookup" << std::endl;
192 std::cout << std::endl;
193 std::cout << " SDL_Minimize" << std::endl;
194 std::cout << " Minimizes client windows." << std::endl;
195 std::cout << " Default SDL_SCANCODE_M." << std::endl;
196 std::cout << " A string as "
197 "defined at "
198 << url << "/SDLScancodeLookup" << std::endl;
199 std::cout << std::endl;
200 std::cout << " SDL_Resizeable" << std::endl;
201 std::cout << " Toggles local window resizeable state." << std::endl;
202 std::cout << " Default SDL_SCANCODE_R." << std::endl;
203 std::cout << " A string as "
204 "defined at "
205 << url << "/SDLScancodeLookup" << std::endl;
206 std::cout << std::endl;
207 std::cout << " SDL_Grab" << std::endl;
208 std::cout << " Toggles keyboard and mouse grab state." << std::endl;
209 std::cout << " Default SDL_SCANCODE_G." << std::endl;
210 std::cout << " A string as "
211 "defined at "
212 << url << "/SDLScancodeLookup" << std::endl;
213 std::cout << std::endl;
214 std::cout << " SDL_Disconnect" << std::endl;
215 std::cout << " Disconnects from the RDP session." << std::endl;
216 std::cout << " Default SDL_SCANCODE_D." << std::endl;
217 std::cout << " A string as defined at " << url << "/SDLScancodeLookup" << std::endl;
218 if (version >= 3)
219 {
220 std::cout << std::endl;
221 std::cout << " SDL_ConnectionDialog" << std::endl;
222 std::cout << " Shows the connection dialog with progress and errors." << std::endl;
223 std::cout << " Default true. +/-sdl-connection-dialog overrides it unless "
224 "allowCommandlineToOverride is disabled."
225 << std::endl;
226 std::cout << std::endl;
227 std::cout << " SDL_Info" << std::endl;
228 std::cout << " Shows and hides the stats and info overlay (+sdl-info shows it from "
229 "the start)."
230 << std::endl;
231 std::cout << " Default SDL_SCANCODE_I. Like every shortcut, the modifier and the key "
232 "no longer reach the session: with the default right Shift, a capital I "
233 "has to be typed with the left one."
234 << std::endl;
235 std::cout << " A string as defined at " << url << "/SDLScancodeLookup" << std::endl;
236 }
237
238#endif
239}