Added "altshow" for switching between the old and the new show format.
This commit is contained in:
parent
4d5f792987
commit
0a8a56c654
|
|
@ -1,3 +1,10 @@
|
|||
2007-10-09 Paolo Nenzi <p.nenzi@ieee.org>
|
||||
* src/frontend/{device.c, miscvars.c}: added "altshow" option to
|
||||
enable the new (Phil Barker) version of the show command. The
|
||||
old show command looks better in interactive mode while the
|
||||
new format is more suitable for automatic processing of the
|
||||
data.
|
||||
|
||||
2007-10-09 Paolo Nenzi <p.nenzi@ieee.org>
|
||||
* src/frontend/cktdojob.c: Chenged of reporting analysis temperature
|
||||
from Kelvins to Celsius (as suggested from Phil Barker).
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ Modified: 2000 AlansFixes
|
|||
|
||||
static wordlist *devexpand(char *name);
|
||||
static void all_show(wordlist *wl, int mode);
|
||||
static void all_show_old(wordlist *wl, int mode);
|
||||
|
||||
/*
|
||||
* show: list device operating point info
|
||||
|
|
@ -41,13 +42,23 @@ static int count;
|
|||
void
|
||||
com_showmod(wordlist *wl)
|
||||
{
|
||||
all_show(wl, 1);
|
||||
bool showmode;
|
||||
|
||||
if (cp_getvar("altshow", VT_BOOL, (char *) &showmode))
|
||||
all_show(wl, 1);
|
||||
else
|
||||
all_show_old(wl, 1);
|
||||
}
|
||||
|
||||
void
|
||||
com_show(wordlist *wl)
|
||||
{
|
||||
all_show(wl, 0);
|
||||
bool showmode;
|
||||
|
||||
if (cp_getvar("altshow", VT_BOOL, (char *) &showmode))
|
||||
all_show(wl, 0);
|
||||
else
|
||||
all_show_old(wl, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ bool ft_asyncdb = FALSE;
|
|||
char *ft_setkwords[] = {
|
||||
|
||||
"acct",
|
||||
"altshow",
|
||||
"appendwrite",
|
||||
"bypass",
|
||||
"chgtol",
|
||||
|
|
|
|||
Loading…
Reference in New Issue