Comment by anuramat
1 day ago
"tmux capture-pane" strips escape sequences that break the terminal and sets all the right variables; try using expect with e.g. neovim
1 day ago
"tmux capture-pane" strips escape sequences that break the terminal and sets all the right variables; try using expect with e.g. neovim
I did use a shell script and script(1) to automate vi. Don't see the issue?
You right, it's pseudo terminal needed. The module pty of python can do this