1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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
3 changed files with 16 additions and 2 deletions

View File

@ -68,7 +68,8 @@ pub fn init(cfg Config) &Context {
}
if ctx.cfg.hide_cursor {
print('\x1b[?25l')
ctx.hide_cursor()
ctx.flush()
}
if ctx.cfg.window_title != '' {