Commit Graph

11 Commits (ef07c3ac065d3e6f8383f60d1cdbe5de8526d2be)

Author SHA1 Message Date
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