|
|
|
|
Support Center Documentation
|
SILC Client User ManualCopyright (c) 2000-2002 by Timo SirainenModified version for SILC Client by Pekka Riikonen Index with some FAQ questions that are answered in the chapter:
1. For all the lazy peopleThese settings should give you pretty good defaults (the ones I use): If colors don't work, and you know you're not going to use some weird non-VT compatible terminal (you most probably aren't), just say:
/SET term_force_colors ON
I don't like automatic query windows, I don't like status window, I do like msgs window where all messages go:
/SET autocreate_own_query OFF
/SET autocreate_query_level DCCMSGS
/SET use_status_window OFF
/SET use_msgs_window ON
Disable automatic window closing when
/SET autoclose_windows OFF
/SET reuse_unused_windows ON
Here's the settings that make irssi work exactly like ircII in window management (send me a note if you can think of more):
/SET autocreate_own_query OFF
/SET autocreate_query_level NONE
/SET use_status_window OFF
/SET use_msgs_window OFF
/SET reuse_unused_windows ON
/SET windows_auto_renumber OFF
/SET autostick_split_windows OFF
/SET autoclose_windows OFF
/SET print_active_channel ON
And example how to add servers: Add some servers to different networks
/SERVER ADD -auto -silcnet SILCNet silc.silcnet.org 706
/SERVER ADD -silcnet SILCNet silc.peelo.com 706
Automatically join to silc channel after connected to server:
/CHANNEL ADD -auto silc SILCNet
If you want lines containing your nick to hilight:
/HILIGHT nick
2. Basic user interface usageWindows can be scrolled up/down with PgUp and PgDown keys. If they don't
work for you, use Meta-p and Meta-n keys. For jumping to beginning or end of
the buffer, use By default, irssi uses "hidden windows" for everything. Hidden window is
created every time you Meta-1, Meta-2, .. Meta-0 - Jump directly between windows 1-10 Meta-q .. Meta-o - Jump directly between windows 11-19 /WINDOW <number> - Jump to any window with specified number Ctrl-P, Ctrl-N - Jump to previous / next window Clearly the easiest way is to use Meta-number keys. And what is the Meta key? For some terminals, it's the same as ALT. If you have Windows keyboard, it's probably the left Windows key. If they don't work directly, you'll need to set a few X resources (NOTE: these work with both xterm and rxvt):
XTerm*eightBitInput: false
XTerm*metaSendsEscape: true
With rxvt, you can also specify which key acts as Meta key. So if you want to use ALT instead of Windows key for it, use:
rxvt*modifier: alt
You could do this by changing the X key mappings:
xmodmap -e "keysym Alt_L = Meta_L Alt_L"
And how exactly do you set these X resources? For Debian, there's
Many windows SSH clients also don't allow usage of ALT. One excellent client that does allow is putty, you can download it from http://www.chiark.greenend.org.uk/~sgtatham/putty/. Irssi also supports split windows, they've had some problems in past but I think they should work pretty well now :) Here's some commands related to them: /WINDOW NEW - Create new split window /WINDOW NEW HIDE - Create new hidden window /WINDOW CLOSE - Close split or hidden window /WINDOW HIDE [<number>|<name>] - Make the split window hidden window /WINDOW SHOW <number>|<name> - Make the hidden window a split window /WINDOW SHRINK [<lines>] - Shrink the split window /WINDOW GROW [<lines>] - Grow the split window /WINDOW BALANCE - Balance the sizes of all split windows By default, irssi uses "sticky windowing" for split windows. This means that windows created inside one split window cannot be moved to another split window without some effort. For example you could have following window layout: Split window 1: win#1 - Status window, win#2 - Messages window Split window 2: win#3 - silcnet/channel1, win#4 - silcnet/channel2 Split window 3: win#5 - worknet/channel1, win#6 - worknet/channel2 When you are in win#1 and press ALT-6, irssi jumps to split window #3 and moves the efnet/#channel2 the active window. With non-sticky windowing the windows don't have any relationship with split windows, pressing ALT-6 in win#1 moves win#6 to split window 1 and sets it active, except if win#6 was already visible in some other split window irssi just changes to that split window. This it the way windows work with ircii, if you prefer it you can set it with
/SET autostick_split_windows OFF
Each window can have multiple channels, queries and other "window items" inside them. If you don't like windows at all, you disable automatic creating of them with
/SET autocreate_windows OFF
And if you keep all channels in one window, you most probably want the channel name printed in each line:
/SET print_active_channel ON
If you want to group only some channels or queries in one window, use
/JOIN -window #channel
/QUERY -window nick
3. Server and channel automationIrssi's multiple network support is IMHO very good - at least compared to other clients :) Even if you're only in one network you should group all your servers to be in the same network as this helps with reconnecting if your primary server breaks and is probably useful in some other ways too :) For information how to actually use irssi correctly with multiple servers see the chapter 6. For example:
/SERVER ADD -auto -silcnet SILCNet silc.silcnet.org 706
/SERVER ADD -auto -silcnet worknet silc.mycompany.com 706
The And finally channels:
/CHANNEL ADD -auto silc SILCNet
/CHANNEL ADD -auto #secret SILCNet password
4. Setting up windows and automatically restoring them at startupFirst connect to all the servers, join the channels and create the queries you want. If you want to move the windows or channels around use commands:
/WINDOW MOVE LEFT/RIGHT/number - move window elsewhere
/WINDOW ITEM MOVE <number>|<name> - move channel/query
to another window
When everything looks the way you like, use If you want to change the layout, you just rearrange the layout like
you want it and use 5. Status and msgs windows & message levelsBy default, all the "extra messages" go to status window. This means pretty much all messages that don't clearly belong to some channel or query. Some people like it, some don't. If you want to remove it, use
/SET use_status_window OFF
This doesn't have any effect until you restart irssi. If you want to
remove it immediately, just Another common window is "messages window", where all private messages go. By default it's disabled and query windows are created instead. To make all private messages go to msgs window, say:
/SET use_msgs_window ON
/SET autocreate_query_level DCCMSGS (or if you don't want queries to
dcc chats either, say NONE)
use_msgs_window either doesn't have any effect until restarting irssi. To create it immediately say:
/WINDOW NEW HIDE - create the window
/WINDOW NAME (msgs) - name it to "(msgs)"
/WINDOW LEVEL MSGS - make all private messages go to this window
/WINDOW MOVE 1 - move it to first window
Note that neither use_msgs_window nor use_status_window have any
effect at all if This brings us to message levels.. What are they? All messages that irssi prints have one or more "message levels". Most common are PUBLIC for public messages in channels, MSGS for private messages and CRAP for all sorts of messages with no real classification. You can get a whole list of levels with
/HELP levels
Status window has message level 6. How support for multiple servers works in irssiSeveral other clients support multiple servers by placing the connection into some window. IRSSI DOES NOT. There is no required relationship between window and server. You can connect to 10 servers and manage them all in just one window, or join channel in each one of them to one sigle window if you really want to. That being said, here's how you do connect to new server without closing the old connection:
/CONNECT silc.peelo.com
Instead of the
-!- SILCNet: silc.silcnet.org:706 (SILCNet)
-!- Compsec: silc.ca.compsec.net:706 (Compsec)
Here you see that we're connected to SILCnet and Compsec networks. The the SILCnet at the beginning is called the "server tag" while the (SILCNet) at the end shows the network. Server tag specifies unique tag to refer to the server, usually it's the same as the network. When the network isn't known it's some part of the server name. When there's multiple connections to same network or server, irssi adds a number after the tag so there could be silcnet, silcnet, silcnet3 etc. Server tags beginning with To disconnect one of the servers, or to stop irssi from reconnecting, use /DISCONNECT SILCnet - disconnect server with tag "SILCNet" /DISCONNECT recon-1 - stop trying to reconnect to RECON-1 server /RMRECONNS - stop all server reconnections /RECONNECT recon-1 - immediately try reconnecting back to RECON-1 /RECONNECT ALL - immediately try reconnecting back to all servers in reconnection queue Now that you're connected to all your servers, you'll have to know how to specify which one of them you want to use. One way is to have an empty window, like status or msgs window. In it, you can specify which server to set active with
/WINDOW SERVER tag - set server "tag" active
Ctrl-X - set the next server in list active
When the server is active, you can use it normally. When there's multiple connected servers, irssi adds [servertag] prefix to all messages in non-channel/query messages so you'll know where it came from. Several commands also accept
/MSG -tag nick message
/JOIN -tag #channel
/QUERY -tag nick
Window's server can be made sticky. When sticky, it will never automatically change to anything else, and if server gets disconnected, the window won't have any active server. When the server gets connected again, it is automatically set active in the window. To set the window's server sticky use
/WINDOW SERVER -sticky tag
This is useful if you wish to have multiple status or msgs windows, one for each server. Here's how to do them (repeat for each server)
/WINDOW NEW HIDE
/WINDOW NAME (status)
/WINDOW LEVEL ALL -MSGS
/WINDOW SERVER -sticky silcnet
/WINDOW NEW HIDE
/WINDOW NAME (msgs)
/WINDOW LEVEL MSGS
/WINDOW SERVER -sticky silcnet
7. /LASTLOG and jumping around in scrollback
/LASTLOG word - print all lines with "word" in them
/LASTLOG word 10 - print last 10 occurances of "word"
/LASTLOG -topics - print all topic changes
If there's more than 1000 lines to be printed, irssi thinks that you
probably made some mistake and won't print them without
/LASTLOG -file ~/silc.log
With Once you've found the lines you were interested in, you might want
to check the discussion around them. Irssi has 8. LoggingIrssi can automatically log important messages when you're set away
( /SET awaylog_level MSGS HILIGHT - Specifies what messages to log /SET awaylog_file ~/.irssi/away.log - Specifies the file to use Easiest way to start logging with Irssi is to use autologging. With it Irssi logs all channels and private messages to specified directory. You can turn it on with
/SET autolog ON
By default it logs pretty much everything execept CTCPS or CRAP
( /SET autolog_level ALL -CRAP -CLIENTCRAP -CTCPS (this is the default) By default irssi logs to ~/silclogs/<servertag>/<target>.log. You can change this with
/SET autolog_path ~/silclogs/$tag/$0.log (this is the default)
The path is automatically created if it doesn't exist. $0 specifies the target (channel/nick). You can make irssi automatically rotate the logs by adding date/time formats to the file name. The formats are in "man strftime" format. For example
/SET autolog_path ~/silclogs/%Y/$tag/$0.%m-%d.log
For logging only some specific channels or nicks, see 9. Changing keyboard bindingsYou can change any keyboard binding that terminal lets irssi know about. It doesn't let irssi know everything, so for example shift-backspace can't be bound unless you modify xterm resources somehow.
[cras@hurina] ~% cat
^[OP
So in irssi you would use
/BIND ^[OP key F1
/BIND ^[11~ key F1
/BIND F1 /ECHO F1 pressed.
11. Irssi's settingsYou probably don't like Irssi's default settings. I don't like them. But I'm still convinced that they're pretty good defaults. Here's some of them you might want to change (the default value is shown): Queries
Windows
User information
Server information
Appearance
Nick completion
12. Statusbar
Name Type Placement Position Visible
window window bottom 0 always
window_inact window bottom 1 inactive
prompt root bottom 100 always
topic root top 1 always
Type can be window or root, meaning if the statusbar should be created for each split window, or just once. Placement can be top or bottom. Position is a number, the higher the value the lower in screen it is. Visible can be always, active or inactive. Active/inactive is useful only with split windows, one split window is active and the rest are inactive. These settings can be changed with:
STATUSBAR <name> TYPE window|root
STATUSBAR <name> PLACEMENT top|bottom
STATUSBAR <name> POSITION <num>
STATUSBAR <name> VISIBLE always|active|inactive
When loading a new statusbar scripts, you'll need to also specify where you want to show it. Statusbar items can be modified with:
STATUSBAR <name> ADD [-before | -after <item>]
[-priority #] [-alignment left|right] <item>
STATUSBAR <name> REMOVE <item>
The item name with statusbar scripts is usually same as the script's
name. Script's documentation should tell if this isn't the case. So, to
add mail.pl before the window activity item (see the list with
|
|
| Copyright © 1997 - 2012 SILC Project. Read our Privacy Policy and Copyright Notice |