summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-09-19 18:50:57 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-09-19 18:50:57 +0200
commitdf47ee18e5f97cf64aa69cfe0c05732e1ff9b184 (patch)
tree6410cd840bfd565cca402329638873fb9dbb7a79
parent81b9f669ce33b6ff99a6a467c896e08ace81afc8 (diff)
aff_copy_short(): a 1-line banner
-rw-r--r--src/intrfn.h1
-rw-r--r--src/pbanner.c7
-rw-r--r--src/tbanner.c7
3 files changed, 13 insertions, 2 deletions
diff --git a/src/intrfn.h b/src/intrfn.h
index 8abc370..129f7da 100644
--- a/src/intrfn.h
+++ b/src/intrfn.h
@@ -38,6 +38,7 @@ extern "C" {
#endif
void aff_copy(WINDOW *window);
+void aff_copy_short(WINDOW *window);
void aff_part(WINDOW *window, const unsigned int newline, const disk_t *disk_car, const partition_t *partition);
int ask_YN(WINDOW *window);
int check_enter_key_or_s(WINDOW *window);
diff --git a/src/pbanner.c b/src/pbanner.c
index f0b90da..6338f5a 100644
--- a/src/pbanner.c
+++ b/src/pbanner.c
@@ -30,12 +30,17 @@
#include "intrf.h"
#include "intrfn.h"
-void aff_copy(WINDOW *window)
+void aff_copy_short(WINDOW *window)
{
wclear(window);
keypad(window, TRUE); /* Need it to get arrow key */
wmove(window,0,0);
wprintw(window, "PhotoRec %s, Data Recovery Utility, %s\n",VERSION,TESTDISKDATE);
+}
+
+void aff_copy(WINDOW *window)
+{
+ aff_copy_short(window);
wmove(window,1,0);
wprintw(window, "Christophe GRENIER <grenier@cgsecurity.org>");
wmove(window,2,0);
diff --git a/src/tbanner.c b/src/tbanner.c
index 04596e8..c8da972 100644
--- a/src/tbanner.c
+++ b/src/tbanner.c
@@ -30,12 +30,17 @@
#include "intrf.h"
#include "intrfn.h"
-void aff_copy(WINDOW *window)
+void aff_copy_short(WINDOW *window)
{
wclear(window);
keypad(window, TRUE); /* Need it to get arrow key */
wmove(window,0,0);
wprintw(window, "TestDisk %s, Data Recovery Utility, %s",VERSION,TESTDISKDATE);
+}
+
+void aff_copy(WINDOW *window)
+{
+ aff_copy_short(window);
wmove(window,1,0);
wprintw(window,"Christophe GRENIER <grenier@cgsecurity.org>");
wmove(window,2,0);