Skip to content
Advertisement

Tag: pty

ncurses newterm following openpty

I am trying to figure out how to do the following: create a new pseudo-terminal open a ncurses screen running inside the (slave) pseudo terminal fork A) forward I/O from the terminal the program is running in (bash) to the new (slave) terminal OR B) exit leaving the ncurses program running in the new pty. Can anyone provide pointers to

How to write a transparent wrapper to terminal application?

Wrapper should handle special control characters and do something but otherwise not interfere with the actual application. (trying to build a tmux like app) So far I have the below modifying example in doc: https://docs.python.org/3/library/pty.html#example The above code works but the vim opened does not cover the entire terminal window. It starts vim with reduced rows and columns If I

Advertisement