comparison src/testdir/test_termcodes.vim @ 29869:0eab537e9ccb v9.0.0273

patch 9.0.0273: Konsole termresponse not recognized Commit: https://github.com/vim/vim/commit/d55f9ef8b2f1e9f868ed1440fe859d1b18b1cfe8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 12:26:07 2022 +0100 patch 9.0.0273: Konsole termresponse not recognized Problem: Konsole termresponse not recognized. Solution: Handle Konsole like libvterm, set 'ttymouse' to "sgr". (closes #10990)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 13:30:03 +0200
parents 5da38c4ffe92
children ac908e454519
comparison
equal deleted inserted replaced
29868:6ab2c61291ac 29869:0eab537e9ccb
1662 1662
1663 set t_RV= 1663 set t_RV=
1664 call test_override('term_props', 0) 1664 call test_override('term_props', 0)
1665 endfunc 1665 endfunc
1666 1666
1667 " This checks the libvterm version response. 1667 func Run_libvterm_konsole_response(code)
1668 " This must be after other tests, because it has side effects to xterm
1669 " properties.
1670 func Test_xx03_libvterm_response()
1671 " Termresponse is only parsed when t_RV is not empty.
1672 set t_RV=x
1673 call test_override('term_props', 1)
1674
1675 set ttymouse=xterm 1668 set ttymouse=xterm
1676 call test_option_not_set('ttymouse') 1669 call test_option_not_set('ttymouse')
1677 let seq = "\<Esc>[>0;100;0c" 1670 let seq = "\<Esc>[>0;" .. a:code .. ";0c"
1678 call feedkeys(seq, 'Lx!') 1671 call feedkeys(seq, 'Lx!')
1679 call assert_equal(seq, v:termresponse) 1672 call assert_equal(seq, v:termresponse)
1680 call assert_equal('sgr', &ttymouse) 1673 call assert_equal('sgr', &ttymouse)
1681 1674
1682 call assert_equal(#{ 1675 call assert_equal(#{
1683 \ cursor_style: 'n', 1676 \ cursor_style: 'n',
1684 \ cursor_blink_mode: 'u', 1677 \ cursor_blink_mode: 'u',
1685 \ underline_rgb: 'u', 1678 \ underline_rgb: 'u',
1686 \ mouse: 's' 1679 \ mouse: 's'
1687 \ }, terminalprops()) 1680 \ }, terminalprops())
1681 endfunc
1682
1683 " This checks the libvterm version response.
1684 " This must be after other tests, because it has side effects to xterm
1685 " properties.
1686 func Test_xx03_libvterm_konsole_response()
1687 " Termresponse is only parsed when t_RV is not empty.
1688 set t_RV=x
1689 call test_override('term_props', 1)
1690
1691 " libvterm
1692 call Run_libvterm_konsole_response(100)
1693 " Konsole
1694 call Run_libvterm_konsole_response(115)
1688 1695
1689 set t_RV= 1696 set t_RV=
1690 call test_override('term_props', 0) 1697 call test_override('term_props', 0)
1691 endfunc 1698 endfunc
1692 1699