Changeset c2c5c77 for functions.c


Ignore:
Timestamp:
Mar 28, 2007, 10:54:33 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7f33c18
Parents:
af9b92e
Message:
Adding 256-color support. This requires a version of ncurses that
supports ABI-6. Colors beyond the first eight are refered to by
number.

Perl now has the number of colors exposed to it by way of
  BarnOwl::getnumcolors()
and also has a mechanism for undefining filters using
  BarnOwl::_remove_filter([filter-name])

You can't remove the 'all' filter or the current filter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    raf9b92e rc2c5c77  
    14401440  wnoutrefresh(owl_global_get_curs_typwin(&g));
    14411441  wnoutrefresh(owl_global_get_curs_msgwin(&g));
     1442
     1443  if (owl_popwin_is_active(owl_global_get_popwin(&g))) {
     1444    owl_popwin_refresh(owl_global_get_popwin(&g));
     1445  }
    14421446 
    14431447  sepbar("");
     
    30183022{
    30193023  owl_fmtext fm;
    3020 
     3024  int i;
     3025 
    30213026  owl_fmtext_init_null(&fm);
    30223027  owl_fmtext_append_normal(&fm, "default: ");
     
    30443049  owl_fmtext_append_normal_color(&fm, "white\n", OWL_COLOR_WHITE, OWL_COLOR_DEFAULT);
    30453050
     3051  for(i = 8; i < COLORS; ++i) {
     3052    char* str1 = owl_sprintf("%4i:     ",i);
     3053    char* str2 = owl_sprintf("%i\n",i);
     3054    owl_fmtext_append_normal(&fm,str1);
     3055    owl_fmtext_append_normal_color(&fm, str2, i, OWL_COLOR_DEFAULT);
     3056    owl_free(str1);
     3057     owl_free(str2);
     3058  }
     3059 
    30463060  owl_function_popless_fmtext(&fm);
    30473061  owl_fmtext_free(&fm);
     
    37193733  owl_fmtext_free(&fm);
    37203734}
     3735
     3736int owl_function_get_color_count()
     3737{
     3738     return COLORS;
     3739}
Note: See TracChangeset for help on using the changeset viewer.