Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=ae478bd064ea07165d080fe0ef2ccd62e3e26881

commit ae478bd064ea07165d080fe0ef2ccd62e3e26881
Author: James Buren <[email protected]>
Date:   Mon Apr 28 05:27:07 2014 -0500

add most of the rest of newt's main function

diff --git a/src-new/newt.cpp b/src-new/newt.cpp
index 7dffd20..e806f78 100644
--- a/src-new/newt.cpp
+++ b/src-new/newt.cpp
@@ -1,5 +1,6 @@
#include <iostream>
#include <cstdlib>
+#include <csignal>
#include <unistd.h>
#include "newt.hpp"

@@ -17,5 +18,22 @@ int UINewt::main(int argc, char **argv)
return code;
}

+       if(newtInit() != 0)
+       {
+               printError("Could not initialize the NEWT user interface.");
+               return code;
+       }
+
+       if(!setSignalInterrupt(SIGWINCH, false))
+       {
+               printError("Failed to stop SIGWINCH from interrupting system 
calls.");
+               newtFinished();
+               return code;
+       }
+
+       newtCls();
+
+       newtFinished();
+
return code;
}
diff --git a/src-new/newt.hpp b/src-new/newt.hpp
index 76277d2..45c929c 100644
--- a/src-new/newt.hpp
+++ b/src-new/newt.hpp
@@ -1,9 +1,10 @@
#pragma once

+#include <newt.h>
#include "ui.hpp"

class UINewt : UI
{
public:
int main(int argc, char **argv);
-};
\ No newline at end of file
+};
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to