Also add test for handling of control chars in zsh title reporting

This commit is contained in:
Kovid Goyal 2022-02-27 10:47:23 +05:30
parent 30146007d3
commit f91463a494
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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):