foreground 91 terminal.cpp int foreground = (tcgetpgrp(STDIN_FILENO) == getpgrp()); foreground 93 terminal.cpp (foreground); foreground 94 terminal.cpp if (foreground) {