![]() |
![]() |
The Commandline Input FeaturesCommandline input features |
||
Principles of operation | ||
The idea is simple: anything that starts with a slash (/) character is interpreted as a command. Anything else is plain text that is sent to the target of the window (channel, query, dcc chat etc..). | ||
The two operating modes | ||
The commandline input has two operating modes: the "user friendly mode" and the "kvs mode". In the user friendly mode all the parameters of the commands are interpreted exactly like you type them. There is no special interpretation of $,%,-,( and ; characters. This allows you to type "/me is happy ;)", for example. In the kvs mode the full parameter interpretation is enabled and the commands work just like in any other script editor. This means that anything that starts with a $ is a function call, anything that starts with a % is a variable, the dash characters after command names are interpreted as switches and ; is the command separator. This in turn does NOT allow you to type "/me is happy ;)" because ; is the command separator and ) will be interpreted as the beginning of the next command. In KVS mode you obviously have to escape the ; character by typing "/me is happy \;)". The user friendly mode is good for everyday chatting and for novice users while the KVS mode is for experts that know that minimum about scripting languages. Please note that in the user-friendly mode you're not allowed to type multiple commands at once :).
Also look at the keyboard shortcuts reference.
|