termui: add show_cursor() and hide_cursor() (#9087)

This commit is contained in:
James Addison 2021-03-04 10:31:26 +00:00 committed by GitHub
parent 9bb073580e
commit a64d9b3e12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -77,7 +77,8 @@ fn (mut ctx Context) termios_setup() ? {
}
if ctx.cfg.hide_cursor {
print('\x1b[?25l')
ctx.hide_cursor()
ctx.flush()
}
if ctx.cfg.window_title != '' {