The Commandline Input Features

# The Commandline Input Features Commandline 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 :).
Default Key Bindings:
Ctrl+B: Inserts the 'bold' mIRC text control character<br> Ctrl+K: Inserts the 'color' mIRC text control character<br> Ctrl+R: Inserts the 'reverse' mIRC text control character<br> Ctrl+U: Inserts the 'underline' mIRC text control character<br> Ctrl+O: Inserts the 'reset' mIRC text control character<br> Ctrl+P: Inserts the 'non-crypt' (plain text) KVIrc control character used to disable encryption of the current text line<br> Ctrl+C: Copies the selected text to clipboard<br> Ctrl+X: Cuts the selected text<br> Ctrl+V: Pastes the clipboard contents (same as middle mouse click)<br> Ctrl+I: Inserts the 'icon' control code and pops up the icon list box<br> Ctrl+A: Select all<br> CursorUp: Moves backward in the command history<br> CursorDown: Moves forward in the command history<br> CursorRight: Moves the cursor to the right<br> CursorLeft: Moves the cursor to the left :)<br> Shift+CursorLeft: Moves the selection to the left<br> Shift+RightCursor: Moves the selection to the right<br> Ctrl+CursorLeft: Moves the cursor one word left<br> Ctrl+CursorRight: Moves the cursor one word right<br> Ctrl+Shift+CursorLeft: Moves the selection one word left<br> Ctrl+Shift+CursorRight: Moves the selection one word right<br> Tab: Nickname, function/command, or filename completion (see below)<br> Shift+Tab: Hostmask or function/command completion (see below)<br> Alt+<numeric_sequence>: Inserts the character by ASCII/Unicode code<br> <example> Alt+32: Inserts ASCII/Unicode character 32: ' ' (a space) Alt+00032: Same as above :) Alt+13: Inserts the Carriage Return (CR) control character Alt+77: Inserts ASCII/Unicode character 77: 'M' Alt+23566: Inserts Unicode character 23566 (an ideogram) </example> Also look at the <a href="shortcuts.kvihelp">global shortcuts</a> reference.<br> If you drop a file on this widget, a <a href="parse.kvihelp">/PARSE <filename></a> will be executed.<br> You can enable word substitution in the preferences dialog.<br> For example, if you choose to substitute "afaik" with "As far as I know",<br> when you will type "afaik" somewhere in the command line, and then press Space or Return, that word will be replaced with "As far as I know".<br> Experiment with it :)<br> The Tab key activates the completion of the current word.<br> If a word is prefixed with a '/', it is treated as a command to be completed, if it begins with '$', it is treated as a function or identifier to be completed, otherwise it is treated as a nickname or filename to be completed.<br> <example> /ec<Tab> will produce /echo<space> /echo $loca<Tab> will produce /echo $localhost </example> Multiple matches are listed in the view window and the word is completed to the common part of all the matches.<br> <example> $sel<Tab;> will find multiple matches and produce $selected </example> Experiment with that too :)

Index, Miscellaneous

KVIrc 3.4.0 Documentation
Generated by loris at Mon Mar 17 20:35:38 2008