Changeset 1aee7d9 for functions.c


Ignore:
Timestamp:
Jun 28, 2002, 2:18:34 AM (18 years ago)
Author:
Erik Nygren <nygren@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:
61d27fb
Parents:
7d4fbcd
Message:
* Added RCS Id strings to all files.
* 'show keymaps' shows details of all keymaps after summary list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r7d4fbcd r1aee7d9  
    77#include <time.h>
    88#include "owl.h"
     9
     10static const char fileIdent[] = "$Id$";
    911
    1012void owl_function_noop(void) {
     
    19631965  owl_list l;
    19641966  owl_fmtext fm;
    1965 
     1967  owl_keymap *km;
     1968  owl_keyhandler *kh;
     1969  int i, numkm;
     1970  char *kmname;
     1971
     1972  kh = owl_global_get_keyhandler(&g);
    19661973  owl_fmtext_init_null(&fm);
    19671974  owl_fmtext_append_bold(&fm, "Keymaps:   ");
    19681975  owl_fmtext_append_normal(&fm, "(use 'show keymap <name>' for details)\n");
    1969   owl_keyhandler_get_keymap_names(owl_global_get_keyhandler(&g), &l);
     1976  owl_keyhandler_get_keymap_names(kh, &l);
    19701977  owl_fmtext_append_list(&fm, &l, "\n", owl_function_keymap_summary);
    19711978  owl_fmtext_append_normal(&fm, "\n");
     1979
     1980  numkm = owl_list_get_size(&l);
     1981  for (i=0; i<numkm; i++) {
     1982    kmname = owl_list_get_element(&l, i);
     1983    km = owl_keyhandler_get_keymap(kh, kmname);
     1984    owl_fmtext_append_bold(&fm, "\n\n----------------------------------------------------------------------------------------------------\n\n");
     1985    owl_keymap_get_details(km, &fm);   
     1986  }
     1987  owl_fmtext_append_normal(&fm, "\n");
     1988 
    19721989  owl_function_popless_fmtext(&fm);
    19731990  owl_keyhandler_keymap_namelist_free(&l);
Note: See TracChangeset for help on using the changeset viewer.