def push_to_foreground(self, worker):
        """
        Push the specified worker to the foreground.
        :param worker: worker to push to the foreground
        :type worker: ShThread
        """
        worker.set_background(False)
        self.stash.mini_buffer.config_runtime_callback(None)
        self.stash.write_message('job {} is now running in foreground ...'.format(worker.job_id))

        Push the specified worker to the foreground.
        :param worker: worker to push to the foreground
        :type worker: ShThread
        
system/shruntime.py