From 47043afb837ab168f454252ef5471a12a8dcdf02 Mon Sep 17 00:00:00 2001 From: localhorst Date: Thu, 10 Sep 2020 12:50:18 +0200 Subject: [PATCH] added about tool text --- out.txt | 1 - src/tui.cpp | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 out.txt diff --git a/out.txt b/out.txt deleted file mode 100644 index 60fffd1..0000000 --- a/out.txt +++ /dev/null @@ -1 +0,0 @@ -date diff --git a/src/tui.cpp b/src/tui.cpp index 8e011bf..90cc902 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -274,23 +274,23 @@ WINDOW* TUI::overwriteDetailViewWindow( int iXSize, int iYSize, int iXStart) string title = "About this tool"; centerTitle(newWindow, title.c_str()); - string sLine01 = "Path: NextLine "; - string sLine02 = "Path: NextLine "; - string sLine03 = "Path: NextLine "; - string sLine04 = "Path: NextLine "; - string sLine05 = "Path: NextLine "; - string sLine06 = "Path: NextLine "; - string sLine07 = "Path: NextLine "; - + string sLine01 = "reHDD - hard drive refurbishing tool"; + string sLine02 = "Version: beta X.X.X"; + string sLine03 = "Available under GPL 3.0"; + string sLine04 = "https://git.mosad.xyz/localhorst/reHDD"; + string sLine05 = "Delete: Wipe format table - this is NOT secure"; + string sLine06 = "Shred: Overwite drive " + to_string(SHRED_ITERATIONS) + " iterations - this is secure"; + uint16_t u16Line = 5; mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine01.size()/2), sLine01.c_str()); mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine02.size()/2), sLine02.c_str()); + u16Line++; mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine03.size()/2), sLine03.c_str()); mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine04.size()/2), sLine04.c_str()); + u16Line++; mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine05.size()/2), sLine05.c_str()); mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine06.size()/2), sLine06.c_str()); - mvwaddstr(newWindow,u16Line++, (iXSize/2)-(sLine07.size()/2), sLine07.c_str()); attroff(COLOR_PAIR(COLOR_AREA_DETAIL)); @@ -450,4 +450,4 @@ void TUI::displaySelectedDrive(Drive drive, int stdscrX, int stdscrY) { delwin(dialog); } -} \ No newline at end of file +}