Changeset ecd5dc5 for functions.c


Ignore:
Timestamp:
Apr 12, 2003, 4:54:57 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e9b1f60
Parents:
8262340
Message:
M-p is bound to 'view personal' by default
loadsubs and loadloginsubs only print messages if in interactive
  mode
added the 'alert_filter' variable, defaults to 'none'.
added the 'alert_action' variable, which is an owl command that
  will be executed when new messages arive that match the
  alert_filter
added the 'term' command which takes the 'raise' and 'deiconify'
  options.  It assumes xterm for now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r8262340 recd5dc5  
    515515void owl_function_loadsubs(char *file) {
    516516  int ret;
     517
    517518  ret=owl_zephyr_loadsubs(file);
     519
     520  if (!owl_context_is_interactive(owl_global_get_context(&g))) return;
    518521  if (ret==0) {
    519522    owl_function_makemsg("Subscribed to messages from file.");
     
    527530void owl_function_loadloginsubs(char *file) {
    528531  int ret;
     532
    529533  ret=owl_zephyr_loadloginsubs(file);
     534
     535  if (!owl_context_is_interactive(owl_global_get_context(&g))) return;
    530536  if (ret==0) {
    531537    owl_function_makemsg("Subscribed to login messages from file.");
     
    26252631  }
    26262632}
     2633
     2634void owl_function_xterm_raise() {
     2635  char buff[10];
     2636
     2637  buff[0]=0x1b;
     2638  buff[1]='[';
     2639  buff[2]='5';
     2640  buff[3]='t';
     2641  write(fileno(stdout), buff, 4);
     2642}
     2643
     2644void owl_function_xterm_deiconify() {
     2645  char buff[10];
     2646
     2647  buff[0]=0x1b;
     2648  buff[1]='[';
     2649  buff[2]='1';
     2650  buff[3]='t';
     2651  write(fileno(stdout), buff, 4);
     2652}
Note: See TracChangeset for help on using the changeset viewer.