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)
|
cmake_minimum_required(VERSION 3.16.3)
|
||||||
project(NCursesPty VERSION 0.1.0)
|
project(NCursesPtyWindow VERSION 0.1.0)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
@ -14,17 +14,17 @@ include("cmake/gsl.cmake")
|
||||||
find_library(LIBVTERM_LIBRARY vterm)
|
find_library(LIBVTERM_LIBRARY vterm)
|
||||||
find_library(UTIL_LIBRARY util)
|
find_library(UTIL_LIBRARY util)
|
||||||
|
|
||||||
add_library(NCursesPty NCursesPtyWindow.cpp Debug.cpp)
|
add_library(NCursesPtyWindow NCursesPtyWindow.cpp Debug.cpp)
|
||||||
target_link_libraries(NCursesPty ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY})
|
target_link_libraries(NCursesPtyWindow ${CURSES_LIBRARIES} ${LIBVTERM_LIBRARY} ${UTIL_LIBRARY})
|
||||||
|
|
||||||
### threads
|
### threads
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG true)
|
set(THREADS_PREFER_PTHREAD_FLAG true)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
target_link_libraries(NCursesPty Threads::Threads)
|
target_link_libraries(NCursesPtyWindow Threads::Threads)
|
||||||
|
|
||||||
### demo application
|
### demo application
|
||||||
add_executable(NCursesPtyApp main.cpp NCursesPtyApp.cpp)
|
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_NAME ${PROJECT_NAME})
|
||||||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace krikkel::NCursesPty
|
namespace krikkel::NCursesPtyWindow
|
||||||
{
|
{
|
||||||
NCursesPtyApp::NCursesPtyApp() : NCursesApplication(false)
|
NCursesPtyApp::NCursesPtyApp() : NCursesApplication(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include <cursesapp.h>
|
#include <cursesapp.h>
|
||||||
|
|
||||||
namespace krikkel::NCursesPty
|
namespace krikkel::NCursesPtyWindow
|
||||||
{
|
{
|
||||||
class NCursesPtyApp : public NCursesApplication
|
class NCursesPtyApp : public NCursesApplication
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
namespace krikkel::NCursesPty
|
namespace krikkel::NCursesPtyWindow
|
||||||
{
|
{
|
||||||
using gsl::narrow;
|
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)
|
#define add_wch UNDEF(add_wch)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace krikkel::NCursesPty
|
namespace krikkel::NCursesPtyWindow
|
||||||
{
|
{
|
||||||
class NCursesPtyWindow : public NCursesWindow
|
class NCursesPtyWindow : public NCursesWindow
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
**WARNING**: This is a prototype. Things will probably break; in spectacular
|
**WARNING**: This is a prototype. Things will probably break; in spectacular
|
||||||
ways.
|
ways.
|
||||||
|
|
||||||
`NCursesPty` provides a pseudo terminal in a ncurses window.
|
`NCursesPtyWindow` provides a pseudo terminal in a ncurses window.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue