Commit Graph

33 Commits (2601d7845393b4ae1a04942cb1aad3424f911290)

Author SHA1 Message Date
Christian Burger 2601d78453 cmake: missed to add `PtyWindow.hpp` to package 2022-05-01 22:37:49 +02:00
Christian Burger 02266dfb0c fixed bug: deadlock when resizing PTY window 2022-04-29 16:36:07 +02:00
Christian Burger 78672521c4 corrected return values for `UNDEF` macros 2022-04-28 12:48:38 +02:00
Christian Burger a300dd492b added ncurses `addnwstr()` to window 2022-04-26 20:53:14 +02:00
Christian Burger ed534363a2 method to insert wide character in ncurses window 2022-04-26 15:13:25 +02:00
Christian Burger 3af1284cf8 refactoring: wide character methods to `Window` 2022-04-25 15:55:39 +02:00
Christian Burger 746e458cd2 renamed `Window` to `PtyWindow`
Making space for a more general base window class with support for wide
characters.
2022-04-25 11:10:07 +02:00
Christian Burger ae6130f095 cmake: some improvements
* not depending on "-dev" packages for the built Debian package
* some refactoring in if-clauses and with "quotes"
* libvterm dependency: if something is missing, made clear what
2022-04-23 22:24:08 +02:00
Christian Burger f994cb2261 moved library system headers to separate folder
Gave the library a version in case it is build statically.
2022-04-23 20:27:55 +02:00
Christian Burger 2d7dda88c5 cmake: determines version from latest Git tag
Some other changes to the CMake-files done as well:
* documentation looks more like Doxygen-style
* prevent mix-up with C++ GSL library ("Guidelines support library" not
"GNU scientific library")
2022-04-23 10:00:33 +02:00
Christian Burger bc76ae227c fixed homepage for Debian package 2022-04-21 12:36:18 +02:00
Christian Burger d3bdb305d0 fixes issue with wrong description in DEB package
* added homepage URL as well
2022-04-21 10:28:45 +02:00
Christian Burger 6ce6bcdace removed redundant include 2022-04-20 12:34:42 +01:00
Christian Burger 45beee33a8 minor cmake fix: ncurses header as system includes 2022-04-20 12:22:51 +01:00
Christian Burger 0a916fe01a made package (.deb and .tar.gz) 2022-04-18 22:59:36 +02:00
Christian Burger 8273da4ada improvements to debug output for syscalls 2022-04-18 22:53:25 +02:00
Christian Burger 33e05f058c well … forgot header guard 2022-04-17 10:28:19 +02:00
Christian Burger ab0525cc6f added mutex to lock concurrent writes to ncurses 2022-04-16 20:27:24 +02:00
Christian Burger aa36b3d22d minor fix 2022-04-14 09:37:37 +02:00
Christian Burger f1d0c012b7 fixing debug facility in when NDEBUG is set
- changed libvterm.cmake so it is easier to integrate in other projects
2022-04-14 09:31:19 +02:00
Christian Burger 4ca933a158 refactoring: closes #10 2022-04-13 19:41:41 +02:00
Christian Burger 8e71512f12 cmake: locate or build `libvterm` dependency
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.
2022-04-13 13:10:55 +02:00
Christian Burger ef07c3ac06 fixes #5, touches on #8
* using `get_wch()` now and mapping most of the function keys documented
in `vterm_keycodes.h` (not num keypad)
* there are still a lot of mappings from ncurses missing (in conjunction
with modifier keys, related issue #11)
* using mutex to make sure writing to terminal client is serialized
2022-04-13 10:46:44 +02:00
Christian Burger 34cebb1019 refactored some debug output 2022-04-09 08:49:44 +02:00
Christian Burger c7138f3df9 added static output handler (fixes #6)
added some extensive debug output — all the communication between pseudo
terminal's host and client
2022-04-08 21:35:49 +02:00
Christian Burger fd800dbca8 extended debug facilities for output
* Output strings with unprintable characters either as a table or as
continuing string of characters; the byte value of unprintable
characters (`isprint(<character>, <locale>) == false`) is shown.
* Output readable string of `key` -> `value` pairs with an enumerated
type for the key and union type for the value.
2022-04-08 21:34:54 +02:00
Christian Burger d01917c82d increased PTY client output buffer size
Corrected error checking for reading output from the client while at it.
2022-04-07 14:28:35 +02:00
Christian Burger 69d750b6ed fixing return key
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 …
2022-04-07 09:01:05 +02:00
Christian Burger 6d02539162 fixes #4 — albeit very slow
#2 needs fixing to remedy that problem with performance
2022-04-05 12:34:35 +02:00
Christian Burger 2171a3daa4 consistent naming of project `NCursesPtyWindow` 2022-04-05 10:28:10 +02:00
Christian Burger e9ef61f7ae added license and basic "read me" information 2022-04-05 10:24:22 +02:00
Christian Burger c0a3ca7822 fixes #1
* demo app: using `SHELL` environment var or `/bin/bash` as default
* removed some debug messages
* enabled all vterm screen handlers; if not implemented there is a debug
message
* fixed and improved cursor position — was sometimes off; e. g. if
pressing backspace
* stubs for some functions required for implementing #3
2022-04-05 10:23:50 +02:00
Christian Burger 28643632ce prototype: ncurses window class wrapping a PTY 2022-04-03 10:16:20 +02:00