TUI: can make the cursor transparent #11519

when setting 'guicursor' highlight blend=100.
This commit is contained in:
Matthieu Coudron
2019-12-19 21:27:21 +01:00
committed by Justin M. Keyes
parent 486ddb6eb7
commit 65aca4d857
4 changed files with 36 additions and 7 deletions

View File

@@ -245,6 +245,25 @@ describe('ui/cursor', function()
eq('normal', screen.mode)
end)
-- update the highlight again to hide cursor
helpers.command('hi Cursor blend=100')
for _, m in ipairs(expected_mode_info) do
if m.hl_id then
m.attr = {background = Screen.colors.Red, blend = 100}
end
end
screen:expect{grid=[[
^ |
~ |
~ |
~ |
test |
]], condition=function()
eq(expected_mode_info, screen._mode_info)
end
}
-- Another cursor style.
meths.set_option('guicursor', 'n-v-c:ver35-blinkwait171-blinkoff172-blinkon173'
..',ve:hor35,o:ver50,i-ci:block,r-cr:hor90,sm:ver42')