version 1.2, 1999/03/02 06:23:56 |
version 1.3, 1999/03/11 21:08:07 |
|
|
#include <term_entry.h> |
#include <term_entry.h> |
#include <dump_entry.h> |
#include <dump_entry.h> |
|
|
MODULE_ID("$From: infocmp.c,v 1.40 1999/03/01 00:40:17 tom Exp $") |
MODULE_ID("$From: infocmp.c,v 1.41 1999/03/07 00:52:02 tom Exp $") |
|
|
#define L_CURL "{" |
#define L_CURL "{" |
#define R_CURL "}" |
#define R_CURL "}" |
|
|
static int termcount; /* count of terminal entries */ |
static int termcount; /* count of terminal entries */ |
|
|
static const char *tversion; /* terminfo version selected */ |
static const char *tversion; /* terminfo version selected */ |
static bool numbers = TRUE; /* format "%'char'" to "%{number}" */ |
static int numbers = 0; /* format "%'char'" to/from "%{number}" */ |
static int outform; /* output format */ |
static int outform; /* output format */ |
static int sortmode; /* sort_mode */ |
static int sortmode; /* sort_mode */ |
static int itrace; /* trace flag for debugging */ |
static int itrace; /* trace flag for debugging */ |
|
|
," -d list different capabilities" |
," -d list different capabilities" |
," -e format output as C initializer" |
," -e format output as C initializer" |
," -f with -1, format complex strings" |
," -f with -1, format complex strings" |
|
," -G format %{number} to %'char'" |
," -g format %'char' to %{number}" |
," -g format %'char' to %{number}" |
," -i analyze initialization/reset" |
," -i analyze initialization/reset" |
," -l output terminfo names" |
," -l output terminfo names" |
|
|
/* where is the terminfo database location going to default to? */ |
/* where is the terminfo database location going to default to? */ |
restdir = firstdir = 0; |
restdir = firstdir = 0; |
|
|
while ((c = getopt(argc, argv, "decCfFgIinlLprR:s:uv:Vw:A:B:1T")) != EOF) |
while ((c = getopt(argc, argv, "decCfFGgIinlLprR:s:uv:Vw:A:B:1T")) != EOF) |
switch (c) |
switch (c) |
{ |
{ |
case 'd': |
case 'd': |
|
|
formatted = TRUE; |
formatted = TRUE; |
break; |
break; |
|
|
|
case 'G': |
|
numbers = 1; |
|
break; |
|
|
case 'g': |
case 'g': |
numbers = FALSE; |
numbers = -1; |
break; |
break; |
|
|
case 'F': |
case 'F': |