host-spawn
A reimplementation of flatpak-spawn --host
.
Improvements over the original:
- Allocates a pty for the spawned process, fixing the following upstream issues: flatpak/flatpak#3697, flatpak/flatpak#3285 and flatpak/flatpak-xdg-utils#57
- Handles SIGWINCH (terminal size changes)
- Passes through
$TERM
environment variable
References
- https://github.com/owtaylor/PurpleEgg/blob/master/common/host-command.c
- https://github.com/gnunn1/tilix/blob/master/source/gx/tilix/terminal/terminal.d