WoW:Console: Difference between revisions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
== Commands == | == Commands == | ||
A Command is a whitespace-less string that can be associated with a function. The Command may or may not have a help message, and it may have a [[#Categories|Category number]] that controls its placement when displayed by the [[help (Console command)|help command]]. | A Command is a whitespace-less string that can be associated with a function. The Command may or may not have a help message, and it may have a [[#Categories|Category number]] that controls its placement when displayed by the [[WoW:help (Console command)|help command]]. | ||
A Command is a function associated with a string that contains no whitespace. The function accepts the name of the command as a string, as well as an optional argument string. For example, running the following command: | A Command is a function associated with a string that contains no whitespace. The function accepts the name of the command as a string, as well as an optional argument string. For example, running the following command: | ||
| Line 31: | Line 31: | ||
Each WTF file is a text file, containing only [[#Commands|Commands]] separated by a <code>\r\n</code>, or CRLF sequence. | Each WTF file is a text file, containing only [[#Commands|Commands]] separated by a <code>\r\n</code>, or CRLF sequence. | ||
Differently named WTF files may interpret specific commands only (such as Config.WTF, which rejects every line that does not begin with the [[set (Console command)|set command]]) | Differently named WTF files may interpret specific commands only (such as Config.WTF, which rejects every line that does not begin with the [[WoW:set (Console command)|set command]]). | ||
The Config.WTF file is loaded by the | The Config.WTF file is loaded by the client at startup, and saved during graceful shutdown. It contains every non-default [[WoW:CVar|CVar]] | ||
== Usage == | == Usage == | ||
To | To enable the console, the client must be specially launched using the <code>-console</code> command-line argument. | ||
To use the console, simply press the tilde (~) key at the top-left of your keyboard to show the draggable console screen. | |||
== Screen == | |||
The screen is customizable using several CVars. | |||