網頁

2006年12月22日 星期五

會響的 PuTTY + screen + irssi

當PuTTY 視窗切到背景時,希望當關鍵字(例如自己的 ID )出現時,視窗就會發出通知,例如:閃爍或聲音。

1. irssi設定以下, 讓irssi發出訊號
/set beep_when_window_active ON
/set beep_when_away ON
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT
/set bell_beeps ON
2. ~/screenrc 裏加上vbell on或在screen裏按Ctrl-a Ctrl-g, 讓screen 會通知putty,
3. putty的settings->Terminal->Bell->Set the style of bell
可以選擇putty通知你的方式
 .選擇Visual Bell(Flash Window),讓Putty通知Windows閃爍.
 .選擇Play a custom sound file,可以發出聲音.

備註:

可用的beep_msg_level(設定樣什麼樣的訊息才要通知)如下:

CRAP, MSGS, PUBLIC, NOTICES, SNOTES, CTCPS, ACTIONS, JOINS, PARTS
QUITS, KICKS, MODES, TOPICS, WALLOPS, INVITES, NICKS, DCC, DCCMSGS,
CLIENTNOTICE, CLIENTCRAP, CLIENTERROR

And a few special ones that could be included with the levels above:
HILIGHT - text is highlighted
NOHILIGHT - don't check highlighting for this message
NO_ACT - don't trigger channel activity when printing this message
NEVER - never ignore or log this message (not a good idea usually)


參考資料
1.Jedi's BLOG http://jedi.org/blog/archives/003191.html
2.My_Beep Irssi-script http://www.xs4all.nl/~stacium/irssi/my_beep.html

更新時間 2007/06/07

沒有留言: