diff --git a/CMakeLists.txt b/CMakeLists.txt index 170bb26..2472c31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16.3) -project(NCursesPty VERSION 0.1.0) +project(NCursesPtyWindow VERSION 0.1.0) set(CMAKE_CXX_STANDARD 17) @@ -14,17 +14,17 @@ include("cmake/gsl.cmake") find_library(LIBVTERM_LIBRARY vterm) find_library(UTIL_LIBRARY util) -add_library(NCursesPty NCursesPtyWindow.cpp Debug.cpp) -target_link_libraries(NCursesPty ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY}) +add_library(NCursesPtyWindow NCursesPtyWindow.cpp Debug.cpp) +target_link_libraries(NCursesPtyWindow ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY}) ### threads set(THREADS_PREFER_PTHREAD_FLAG true) find_package(Threads REQUIRED) -target_link_libraries(NCursesPty Threads::Threads) +target_link_libraries(NCursesPtyWindow Threads::Threads) ### demo application add_executable(NCursesPtyApp main.cpp NCursesPtyApp.cpp) -target_link_libraries(NCursesPtyApp ${CURSES_LIBRARIES} NCursesPty) +target_link_libraries(NCursesPtyApp ${CURSES_LIBRARIES} NCursesPtyWindow) set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) diff --git a/NCursesPtyApp.cpp b/NCursesPtyApp.cpp index e481e53..971b303 100644 --- a/NCursesPtyApp.cpp +++ b/NCursesPtyApp.cpp @@ -10,7 +10,7 @@ #include #include -namespace krikkel::NCursesPty +namespace krikkel::NCursesPtyWindow { NCursesPtyApp::NCursesPtyApp() : NCursesApplication(false) { diff --git a/NCursesPtyApp.hpp b/NCursesPtyApp.hpp index 4f166ea..6efa66e 100644 --- a/NCursesPtyApp.hpp +++ b/NCursesPtyApp.hpp @@ -8,7 +8,7 @@ #include -namespace krikkel::NCursesPty +namespace krikkel::NCursesPtyWindow { class NCursesPtyApp : public NCursesApplication { diff --git a/NCursesPtyWindow.cpp b/NCursesPtyWindow.cpp index 4236baa..44167bd 100644 --- a/NCursesPtyWindow.cpp +++ b/NCursesPtyWindow.cpp @@ -12,7 +12,7 @@ #include #include -namespace krikkel::NCursesPty +namespace krikkel::NCursesPtyWindow { using gsl::narrow; diff --git a/NCursesPtyWindow.hpp b/NCursesPtyWindow.hpp index fed6db8..3ea1470 100644 --- a/NCursesPtyWindow.hpp +++ b/NCursesPtyWindow.hpp @@ -15,7 +15,7 @@ inline void UNDEF(add_wch)(const cchar_t *character) { add_wch(character); } #define add_wch UNDEF(add_wch) #endif -namespace krikkel::NCursesPty +namespace krikkel::NCursesPtyWindow { class NCursesPtyWindow : public NCursesWindow { diff --git a/README.md b/README.md index 5f4b3c5..49bec5e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **WARNING**: This is a prototype. Things will probably break; in spectacular ways. -`NCursesPty` provides a pseudo terminal in a ncurses window. +`NCursesPtyWindow` provides a pseudo terminal in a ncurses window. ## Building diff --git a/main.cpp b/main.cpp index fa5b984..d6028e7 100644 --- a/main.cpp +++ b/main.cpp @@ -6,4 +6,4 @@ #include "NCursesPtyApp.hpp" -krikkel::NCursesPty::NCursesPtyApp cursesPtyApp; \ No newline at end of file +krikkel::NCursesPtyWindow::NCursesPtyApp cursesPtyApp; \ No newline at end of file