Christian Burger
8e71512f12
There is no version detection. If there is any vterm library, it is used. If it is the wrong version, there will be an build error. `libvterm.so.0.0.2` is preferred, which hopefully is compatible to revision 740 or Ubuntu `libvterm0` version 0.1.2-2. If no library is found, the correct one is downloaded and build. |
||
---|---|---|
.vscode | ||
cmake | ||
.gitignore | ||
CMakeLists.txt | ||
Debug.cpp | ||
Debug.hpp | ||
LICENSE | ||
main.cpp | ||
NCursesPtyApp.cpp | ||
NCursesPtyApp.hpp | ||
NCursesPtyWindow.cpp | ||
NCursesPtyWindow.hpp | ||
README.md | ||
SingleUserInput.cpp | ||
SingleUserInput.hpp |
Description
WARNING: This is a prototype. Things will probably break; in spectacular ways.
NCursesPtyWindow
provides a pseudo terminal in a ncurses window.
Building
Requires:
- GCC 9.3 (C++17)
- ncurses 6.2
- libvterm (0.1.2-2; r740 at https://bazaar.launchpad.net/~libvterm/libvterm/trunk/revision/740)
- libmsgsl-dev 2.1.0-1 (Microsoft C++ Guidelines Support Library)
Running
Though this is a library, there is a demo application. It starts the currently
running shell (or /bin/bash
if SHELL
environment variable is not set) and
runs it in a ncurses window.