Christian Burger
69d750b6ed
When pressing return in `nano` the terminal received an `<CTRL>+J` instead of the return key. `<CTRL>+J` justifies the text. But is (confusingly) actually the key for a line feed as well? Terminal programming is not easy … |
||
---|---|---|
.vscode | ||
cmake | ||
.gitignore | ||
CMakeLists.txt | ||
Debug.cpp | ||
Debug.hpp | ||
LICENSE | ||
main.cpp | ||
NCursesPtyApp.cpp | ||
NCursesPtyApp.hpp | ||
NCursesPtyWindow.cpp | ||
NCursesPtyWindow.hpp | ||
README.md |
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.