#.xitalkrc file

#prefix path for pixmaps
#used if the explicit path mentioned in the pattern section fails to
#provide a match

DEFAULTPIC = xitalk.xpm

#automatic answer 
AUTOANSWER = NO

#autorun created command
AUTORUN = NO

#automatically update who list
AUTOREFRESH = YES

#----------------Pattern Section
#define a pattern
#note the use of %(-1) for the fun of it
PATTERN_BEGIN
TITLE = Talk Request
PATTERN = talk: respond with:  talk (.*)@(.*)
COMMAND = xterm -ut -T %(-1) -exec ytalk -x %(1)@%(2)
PICTURE = talk.xpm
PATTERN_END

PATTERN_BEGIN
TITLE = Write Request
PATTERN = (.*)Message from (.*)@(.*) on (.*) at (.*)
COMMAND = xmessage "Write from %(2) at %(4)"
PICTURE = write.xpm
PATTERN_END

PATTERN_BEGIN
TITLE = Wall
PATTERN = Broadcast Message from (.*)@(.*)
COMMAND = xmessage "Broadcast message from  %(1)"
PICTURE = wall.xpm
PATTERN_END


#----------------Menu Section
MENU_BEGIN
TITLE = Talk
DETERMINED = xterm -ut -exec ytalk -x %(u)
MENU_END

MENU_BEGIN
TITLE = Write
DETERMINED = xterm -ut -exec write %(u) %(t)
MENU_END

MENU_BEGIN
TITLE = Wall
DETERMINED = xterm -ut -exec wall
MENU_END

#----------------Configurations Section
CONFIGS_BEGIN
#This file
TITLE = Default xinitrc
FILE = /etc/xitalkrc
CONFIGS_END
