mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Wait till prompt appears before issuing clear
This commit is contained in:
parent
43b2935e52
commit
16da031f68
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ function _set_status_prompt; function fish_prompt; echo -n "$pipestatus $status
|
|||
pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(self.home_dir))
|
||||
|
||||
# completion and prompt marking
|
||||
pty.wait_till(lambda: 'cd -' not in pty.screen_contents().splitlines()[-1])
|
||||
pty.send_cmd_to_child('clear')
|
||||
pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 1)
|
||||
pty.send_cmd_to_child('_test_comp_path')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue