consistent naming of project NCursesPtyWindow
This commit is contained in:
parent
e9ef61f7ae
commit
2171a3daa4
|
@ -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})
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <utmp.h>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace krikkel::NCursesPty
|
||||
namespace krikkel::NCursesPtyWindow
|
||||
{
|
||||
NCursesPtyApp::NCursesPtyApp() : NCursesApplication(false)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <cursesapp.h>
|
||||
|
||||
namespace krikkel::NCursesPty
|
||||
namespace krikkel::NCursesPtyWindow
|
||||
{
|
||||
class NCursesPtyApp : public NCursesApplication
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <cctype>
|
||||
#include <termios.h>
|
||||
|
||||
namespace krikkel::NCursesPty
|
||||
namespace krikkel::NCursesPtyWindow
|
||||
{
|
||||
using gsl::narrow;
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue