![]() The "newsrc" variable describes the name of your. The "server_timeout" variable describes how how many seconds to wait for a response from the server before giving up. The "server" variable is only used if the "active_file" variable is not set. The "server" variable names an NNTP news-server. The "delay" variable describes how many seconds to Set active_file /usr/news/lib/activetknewsbiff alternates between checking for unread news and sleeping (kind of like many undergraduates). The following example lines show variables that can affect the behavior (A check should, of course, be made to make sure that a newsreader is not already running.) This would avoid the possibility of starting multiple newsreaders just because multiple The user procedure could also be used to start a newsreader. In the user procedure, play the sound if the flag is set (and then reset the flag). In a row, make the -new command simply set a flag. To prevent playing the sound several times Procedure "user" is run immediately after the newsgroups are scheduled to be written to the display and before they are actually written.įor example, suppose unread articles appear in several rec.auto groups and you play the same sound for each one. The command executed is the one associated with theįirst pattern in the configuration file that matches and observes the given threshold.Īny command that is simply listed in the configuration file is executed each time before the update loop in tknewsbiff. Watch dc.dining -new Actions associated with the -new and -display flags are executed only once for each matching newsgroup. Omits the display command, you can disable the display of newsgroups that are already reported via -new. For example, by explicitly providing a -display flag that It schedules $newsgroup to be written to tknewsbiff's display when it is rewritten. The special command "display" is theĭefault command. }The flag "-display" describes a command to be executed every time the newsgroup is reported as having unread news. For example, the following line could run the newsgroup name through a speech synthesizer:Įxec speak "New news has arrived in $newsgroup." This is useful when the action is triggered by a "newsgroup" is a read-only variable which contains the name of the newsgroup that is being reported. However, it's probably not a good idea to do Watch rec.auto* -new "play vroom"As an aside, you can put an "&" at the end of an "exec" command to get commands to execute asynchronously. This would allow the -new specification to be much shorter. For example, if you have many -new flags that all play sound files, you could define a Watch rec.auto* -new "exec play /usr/local/sounds/"You can cut down on the verbosity of actions by defining procedures. Watch dc.dining -new "exec play /usr/local/sounds/" For example, the following lines invoke the Ignore *.dThe flag "-new" describes a command to be executed when the newsgroup is first reported as having unread news. For example, the following matches all comp.* and nist.* newgroups exceptįor nist.posix or. To suppress newsgroups that would otherwise be reported, use the "ignore" command. If no watch commands are given (or no configuration file exists), all groups which are subscribed to are watched. ForĮxample, "-threshold 3" means there must be at least three articles unread before tknewsbiff will report the newsgroup. The "-threshold" flag changes the threshold to the following number. Byĭefault, tknewsbiff reports on the newsgroup if there is at least one unread article. Watch *.sources.* -threshold 20For each newsgroup pattern, any newsgroup that matches it and which you are subscribed to (according to your newsrc file) is eligible for reporting. Tcl, all but the most esoteric configurations will be obvious.Įach newsgroup (or set of newsgroups) to be watched is described by using the "watch" command. The syntax observes the usual Tcl rules - however, even if you don't know tknewsbiff can optionally play a sound, start your newsreader, etc.īy default, the configuration file ~/.tknewsbiff describes how tknewsbiff behaves. Removes the window after you've read the news. Introduction tknewsbiff pops up a window when there is unread news in your favorite newsgroups and Tknewsbiff - pop up a window when news appears
0 Comments
Leave a Reply. |