andyk / ht

headless terminal - wrap any binary with a terminal interface for easy programmatic access.
Apache License 2.0
746 stars 12 forks source link

Sending signals to foreground process #1

Open pzmarzly opened 4 weeks ago

pzmarzly commented 4 weeks ago

Does ht support sending a signal to current (foreground) process? How to send SIGINT or SIGKILL?

My Unix knowledge is rusty, but I think ht doesn't need to know what the foreground process is. If you send a signal to pty, AFAIK the kernel will somehow forward it to the foreground process in the process group.