]> granicus.if.org Git - mutt/commitdiff
Add curses_version to mutt -v output (thanks to Vincent Lefevre for
authorBrendan Cully <brendan@kublai.com>
Mon, 26 Feb 2007 17:27:29 +0000 (17:27 +0000)
committerBrendan Cully <brendan@kublai.com>
Mon, 26 Feb 2007 17:27:29 +0000 (17:27 +0000)
the initial patch), and reformat library information.

main.c

diff --git a/main.c b/main.c
index 4dd5468012a8bc464ca8e1872c73e2cac9c4bc51..e8b7300e767ee4aaaf0e796272f29399e7114752 100644 (file)
--- a/main.c
+++ b/main.c
@@ -167,18 +167,18 @@ static void show_version (void)
   printf (" (%s)", uts.machine);
 
 #ifdef NCURSES_VERSION
-  printf (" [using ncurses %s]", NCURSES_VERSION);
+  printf ("\nncurses: %s (compiled with %s)", curses_version(), NCURSES_VERSION);
 #elif defined(USE_SLANG_CURSES)
-  printf (" [using slang %d]", SLANG_VERSION);
+  printf ("\nslang: %d", SLANG_VERSION);
 #endif
 
 #ifdef _LIBICONV_VERSION
-  printf (" [using libiconv %d.%d]", _LIBICONV_VERSION >> 8,
+  printf ("\nlibiconv: %d.%d", _LIBICONV_VERSION >> 8,
          _LIBICONV_VERSION & 0xff);
 #endif
 
 #ifdef HAVE_LIBIDN
-  printf (" [using libidn %s (compiled with %s)]", stringprep_check_version (NULL), 
+  printf ("\nlibidn: %s (compiled with %s)", stringprep_check_version (NULL), 
          STRINGPREP_VERSION);
 #endif