rabite0 / hunter

The fastest file manager in the galaxy!
Do What The F*ck You Want To Public License
1.31k stars 64 forks source link

Route output of subprocesses through pseudoterminal interface to get correctly sized output and colors #18

Open rabite0 opened 5 years ago

rabite0 commented 5 years ago

Right now hunter just pipes stdout/stderr to a textview, but this means subprocesses don't know about the terminal size and don't use colors unless forced with flags. This could be improved by plumbing everything through the pseudo-terminal interface.

Additionally it would be nice if it was possible to send input to those subprocesses, turning hunter into a real TUI-shell (proxy).

rabite0 commented 5 years ago

tmux pipe-pane looks promising. Seems to be able to pipe stdin and stdout/stderr while pretending to run stuff in a terminal.