}
// libvterm sends 0;100;0
- if (version == 100 && arg[0] == 0 && arg[2] == 0)
+ // Konsole sends 0;115;0 and works the same way
+ if ((version == 100 || version == 115) && arg[0] == 0 && arg[2] == 0)
{
// If run from Vim $COLORS is set to the number of
// colors the terminal supports. Otherwise assume
call test_override('term_props', 0)
endfunc
-" This checks the libvterm version response.
-" This must be after other tests, because it has side effects to xterm
-" properties.
-func Test_xx03_libvterm_response()
- " Termresponse is only parsed when t_RV is not empty.
- set t_RV=x
- call test_override('term_props', 1)
-
+func Run_libvterm_konsole_response(code)
set ttymouse=xterm
call test_option_not_set('ttymouse')
- let seq = "\<Esc>[>0;100;0c"
+ let seq = "\<Esc>[>0;" .. a:code .. ";0c"
call feedkeys(seq, 'Lx!')
call assert_equal(seq, v:termresponse)
call assert_equal('sgr', &ttymouse)
\ underline_rgb: 'u',
\ mouse: 's'
\ }, terminalprops())
+endfunc
+
+" This checks the libvterm version response.
+" This must be after other tests, because it has side effects to xterm
+" properties.
+func Test_xx03_libvterm_konsole_response()
+ " Termresponse is only parsed when t_RV is not empty.
+ set t_RV=x
+ call test_override('term_props', 1)
+
+ " libvterm
+ call Run_libvterm_konsole_response(100)
+ " Konsole
+ call Run_libvterm_konsole_response(115)
set t_RV=
call test_override('term_props', 0)