diff --git a/src/app/rmrf.cpp b/src/app/rmrf.cpp index 33c14ce1d76c0abf607ca769d1c3f913b0a7e421..9e9f64af249189fafb3591b4e05eb7cf603ce9ee 100644 --- a/src/app/rmrf.cpp +++ b/src/app/rmrf.cpp @@ -1,3 +1,11 @@ +#include "../ui/View.h" + +namespace rmrf { + int main() { + ui::init_ui(); + ui::destroy_ui(); return 0; } + +} diff --git a/src/ui/View.cpp b/src/ui/View.cpp new file mode 100644 index 0000000000000000000000000000000000000000..eede64287966e8157bc23862199aa1559519ce79 --- /dev/null +++ b/src/ui/View.cpp @@ -0,0 +1,17 @@ +#include <ncurses/ncursesw.h> + +#include "View.h" + +namespace rmrf { + namespace ui { + + void init_ui() { + initscr(); + } + + void destroy_ui() { + endwin(); + } + + } +} diff --git a/src/ui/View.h b/src/ui/View.h new file mode 100644 index 0000000000000000000000000000000000000000..721ed9c8b484366e74b902c2d3f8d7d7c1ae8936 --- /dev/null +++ b/src/ui/View.h @@ -0,0 +1,12 @@ +#ifndef VIEW_H +#define VIEW_H + +namespace rmrf { +namespace ui { + +void init_ui( void ); +void destroy_ui( void ); + +} +} +#endif diff --git a/src/ui/View.ldflags b/src/ui/View.ldflags new file mode 100644 index 0000000000000000000000000000000000000000..4d137838594ad61cd31f6e40549aa227efa131bc --- /dev/null +++ b/src/ui/View.ldflags @@ -0,0 +1 @@ +-lncursesw