summaryrefslogtreecommitdiffstats
path: root/src/pbanner.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
commit1650fe5b8b6cea638c280df13605aea816718a00 (patch)
treefed11bd9361236aba47157d859607c109db05814 /src/pbanner.c
parent56e1c29b2c0614b0b3230946d72e1eaf37618bcc (diff)
Split ncurses text interface from functions
Diffstat (limited to 'src/pbanner.c')
-rw-r--r--src/pbanner.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/pbanner.c b/src/pbanner.c
new file mode 100644
index 0000000..82388c2
--- /dev/null
+++ b/src/pbanner.c
@@ -0,0 +1,44 @@
+/*
+
+ File: pbanner.c
+
+ Copyright (C) 2009 Christophe GRENIER <grenier@cgsecurity.org>
+
+ This software is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write the Free Software Foundation, Inc., 51
+ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#ifdef HAVE_NCURSES
+#include "types.h"
+#include "common.h"
+#include "testdisk.h"
+#include "intrf.h"
+#include "intrfn.h"
+
+void aff_copy(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);
+ wmove(window,1,0);
+ wprintw(window, "Christophe GRENIER <grenier@cgsecurity.org>");
+ wmove(window,2,0);
+ wprintw(window, "http://www.cgsecurity.org");
+}
+#endif