Previous Next Contents

3. Commands

3.1 CDCC/XDCC

BitchX offers built in support for public file offering called CDCC. Most clients tend to use XDCC file offering, for this reason BitchX will recognise any XDCC requests the same as CDCC requests. To use CDCC, you can type /cdcc for all the commands available.

3.2 Color codes in BitchX

%K - Dark Grey                  %k - Black
%G - Bold Green                 %g - Dark Green
%Y - Yellow                     %y - Brown
%C - Bold Cyan                  %c - Cyan
%B - Bold Blue                  %b - Blue
%P - Bold Purple                %p - Purple
%M - Bold Magenta               %m - Magenta
%R - Bold Red                   %r - Red

%n - Null Color (will nullify colors before it)
%0 %1 %2 %3 %4 %5 %6 %7 %8 %9 - Background Colors
%F - Flashing Foreground
%U - Underline text

Using these is as simple as /eval say $cparse("%RRed Text"), you can
also mix them like such /eval say $cparse("%RRed %BBlue").

3.3 ircII Windowing - hidden windows

Ok to set the scene BitchX uses a number of windows, the first window is referred to as (1). So for example if you joined #BitchX, on EFnet, then typed /window new hide you will not really notice anything. BitchX has created a new window for you, and that window, hereafter referred to as (2) is hidden. To switch to it, press ALT+2. Its that simple. You will notice that it only has one status bar, but this can be corrected by excuting the following in window 2:

/window double on
/window split on

There are somewhat unlimited options with this type of windowing. A good example of using a window would be to open a query window, or open another server connection.

To kill a window you need to switch to it, then use /window kill

3.4 ircII Windowing - multiple visible windows

The windowing commands, you can create as many windows as will fit on your screen, and assign each to a channel, assign one to receive all your /msg's.

Here are the current windowing commands available (/help window)

ADD           BACK          BALANCE       BEEP_ALWAYS   BIND
CHANNEL       CREATE        DELETE        DESCRIBE      DISCON
DOUBLE        ECHO          FIXED         GOTO          GROW
HELP          HIDE          HIDE_OTHERS   HOLD_MODE     KILL
KILL_OTHERS   KILLSWAP      LAST          LASTLOG       LASTLOG_LEVEL
LEVEL         LIST          LOG           LOGFILE       MOVE
NAME          NEW           NEXT          NOSERV        NOTIFY
NOTIFY_LEVEL  NUMBER        POP           PREVIOUS      PROMPT
PUSH          QUERY         REFNUM        REMOVE        SERVER
SET           SCRATCH       SCROLLBACK    SHOW          SHOW_ALL
SHRINK        SIZE          SKIP          SPLIT         STACK
SWAP          TRIPLE        UNBIND        UPDATE

BitchX already has some of these binds built in (/bhelp window)

   [window shortcuts]:
     ^W- - Shrinks current window 1 line
     ^W+ - Grows current window 1 line
     ^Wm - Moves current window down 1 line
     ^Wl - Lists current windows
     ^Wk - Kills current window
     ^Wh - Hides current window
     ^Wb - Balances window sizes
     ^Wn - Swaps to next window
     ^Wp - Swaps to previous window
      /# - Shows window number (1-4)

The best way to use these are to experiment with the keys. One quick tip to use multiple servers "/window server server.name.dom".

3.5 BitchX Variables for scripters

BitchX has a number of variables, these also include the standard ircii scripting ones, along with the extended BitchX ones.

   $,         last person who sent you a MSG
   $.         last person to whom you sent a MSG
   $:         last person to join a channel you are on
   $;         last person to send a public message to a channel you are on
   $A         text of your AWAY message, if any
   $B         body of last MSG you sent
   $C         current channel
   $D         last person that NOTIFY detected a signon for
   $E         idle time
   $F         time client was started, $time() format
   $H         current server numeric being processed
   $I         channel you were last INVITEd to
   $J         client version text string
   $K         current value of CMDCHARS
   $L         current contents of the input line
   $M         modes of current channel, if any
   $N         current nickname
   $O         value of STATUS_OPER if you are an irc operator
   $P         if you are a channel operator in $C, expands to a '@'
   $Q         nickname of whomever you are QUERYing
   $R         version of current server
   $S         current server name
   $T         target of current input (channel or QUERY nickname)
   $U         value of cutbuffer
   $V         client release date (numeric version string)
   $W         current working directory
   $X         your user@host address
   $Y         value of REALNAME
   $Z         time of day (hh:mm)
   $$         a literal '$'

There are probably a lot more, but these should get you started.


Previous Next Contents