mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Also add test for handling of control chars in zsh title reporting
This commit is contained in:
parent
30146007d3
commit
f91463a494
1 changed files with 5 additions and 0 deletions
|
|
@ -140,6 +140,11 @@ RPS1="{rps1}"
|
|||
pty.wait_till(lambda: pty.screen.cursor.shape == 0)
|
||||
pty.write_to_child('\x04')
|
||||
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BEAM)
|
||||
with self.run_shell(rc=f'''PS1="{ps1}"''') as pty:
|
||||
pty.callbacks.clear()
|
||||
pty.send_cmd_to_child('printf "%s\x16\a%s" "a" "b"')
|
||||
pty.wait_till(lambda: 'ab' in pty.screen_contents())
|
||||
self.assertIn('%s^G%s', pty.screen_contents())
|
||||
|
||||
@unittest.skipUnless(shutil.which('fish'), 'fish not installed')
|
||||
def test_fish_integration(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue