Changeset 5e0b690 for commands.c


Ignore:
Timestamp:
Apr 10, 2004, 10:47:40 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
405d5e6
Parents:
f84bca8
Message:
The colorclass command is added, to make colorization easy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rd4b84c0 r5e0b690  
    546546              "The color of messages in the current filter will be changed\n"
    547547              "to <color>.  Use the 'show colors' command for a list\n"
     548              "of valid colors.\n\n"
     549              "SEE ALSO: 'show colors'\n"),
     550
     551  OWLCMD_ARGS("colorclass", owl_command_colorclass, OWL_CTX_INTERACTIVE,
     552              "create a filter to color messages of the given class name",
     553              "colorclass <class> <color>",
     554              "A filter will be created to color messages in <class>"
     555              "in <color>.  Use the 'show colors' command for a list\n"
    548556              "of valid colors.\n\n"
    549557              "SEE ALSO: 'show colors'\n"),
     
    22322240}
    22332241
     2242char *owl_command_colorclass(int argc, char **argv, char *buff)
     2243{
     2244  char *filtname;
     2245 
     2246  if (argc!=3) {
     2247    owl_function_makemsg("Wrong number of arguments to colorclass command");
     2248    return NULL;
     2249  }
     2250
     2251  filtname=owl_function_classinstfilt(argv[1], NULL);
     2252  (void) owl_function_color_filter(filtname, argv[2]);
     2253  return NULL;
     2254}
     2255
    22342256char *owl_command_zpunt(int argc, char **argv, char *buff)
    22352257{
Note: See TracChangeset for help on using the changeset viewer.