Beispiel #1
0
 def bg(self):
     self.horizontal_line("bg")
     with log.ignore_signal(signal.SIGTTOU):
         os.tcsetpgrp(self.controller_fd, os.getpgrp())
     time.sleep(self.sleep_time)
Beispiel #2
0
 def fg(self):
     self.horizontal_line("fg")
     with log.ignore_signal(signal.SIGTTOU):
         os.tcsetpgrp(self.master_fd, os.getpgid(self.pid))
     time.sleep(self.sleep_time)