Job Control (xonsh.jobs
)¶
Job control for the xonsh shell.
-
xonsh.jobs.
bg
(args, stdin=None)[source]¶ xonsh command: bg
Resume execution of the currently active job in the background, or, if a single number is given as an argument, resume that job in the background.
-
xonsh.jobs.
clean_jobs
()[source]¶ Clean up jobs for exiting shell
In non-interactive mode, kill all jobs.
In interactive mode, check for suspended or background jobs, print a warning if any exist, and return False. Otherwise, return True.
-
xonsh.jobs.
fg
(args, stdin=None)[source]¶ xonsh command: fg
Bring the currently active job to the foreground, or, if a single number is given as an argument, bring that job to the foreground. Additionally, specify “+” for the most recent job and “-” for the second most recent job.
-
xonsh.jobs.
get_next_job_number
()[source]¶ Get the lowest available unique job number (for the next job created).
-
xonsh.jobs.
jobs
(args, stdin=None, stdout=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, stderr=None)[source]¶ xonsh command: jobs
Display a list of all current jobs.
-
xonsh.jobs.
kill_all_jobs
()[source]¶ Send SIGKILL to all child processes (called when exiting xonsh).
-
xonsh.jobs.
print_one_job
(num, outfile=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]¶ Print a line describing job number
num
.