<<< Date Index >>>     <<< Thread Index >>>

Re: curses library version for mutt -v



In the last episode (Jan 29), Vincent Lefevre said:
> I suggest the following patch:
> 
> --- mutt-cvs/main.c   2006-07-11 23:38:30.000000000 +0000
> +++ mutt-new/main.c   2007-01-29 16:44:06.000000000 +0000
> @@ -167,7 +167,7 @@
>    printf (" (%s)", uts.machine);
>  
>  #ifdef NCURSES_VERSION
> -  printf (" [using ncurses %s]", NCURSES_VERSION);
> +  printf (" [using ncurses %s (%s)]", NCURSES_VERSION, curses_version ());
>  #elif defined(USE_SLANG_CURSES)
>    printf (" [using slang %d]", SLANG_VERSION);
>  #endif

or this, to match the style of the libidn output a few lines down:

--- main.c      11 Jul 2006 23:38:30 -0000      3.36
+++ main.c      29 Jan 2007 17:37:48 -0000
@@ -167,7 +167,8 @@ static void show_version (void)
   printf (" (%s)", uts.machine);
 
 #ifdef NCURSES_VERSION
-  printf (" [using ncurses %s]", NCURSES_VERSION);
+  printf (" [using ncurses %s (compiled with %s)]", curses_version(), 
+         NCURSES_VERSION);
 #elif defined(USE_SLANG_CURSES)
   printf (" [using slang %d]", SLANG_VERSION);
 #endif


-- 
        Dan Nelson
        dnelson@xxxxxxxxxxxxxxx