xonsh/tests/prompt
Peter Ye 08b302364a
Update terminal title before executing subprocess (#4916)
* Update terminal title before executing subprocess

This eliminates the need to use `pause_call_resume()`, which causes issues
when it sends SIGSTOP to a process that is in the middle of a syscall
(for example, the `swaymsg` command fails when it gets stopped during
a `recv` syscall).

Additionally, this approach is more flexible, as it allows captured
commands and callable aliases to also be updated as expected in the
terminal's title.

* Clear prompt cache in readline shell

* Add type annotation

* Use reset_key() to only reset current_job

* Convert into PromptField class

* Support PromptField with value of None

Allows {current_job:{} | } to work as expected when current_job is a
PromptField.

* Add tests
2022-08-10 09:50:09 +05:30
..
test_base.py Update terminal title before executing subprocess (#4916) 2022-08-10 09:50:09 +05:30
test_cwd.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_gitstatus.py fix: empty gitstatus on paths without repo (#4907) 2022-08-03 19:09:43 +05:30
test_job.py Update terminal title before executing subprocess (#4916) 2022-08-10 09:50:09 +05:30
test_vc.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00