std.ps.tcsetpgrp

std.ps

tcsetpgrp(fd, pgid)

Set the foreground process group of a terminal

Sets the foreground process group of the terminal associated with the file descriptor fd to the process group specified by pgid.