mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
[ncplayer] disable cursor in direct mode #1515
This commit is contained in:
parent
5507bbbd3e
commit
9f8d938fad
@ -322,6 +322,7 @@ int direct_mode_player(int argc, char** argv, ncscale_e scalemode,
|
||||
blitter = NCBLIT_DEFAULT;
|
||||
}
|
||||
}
|
||||
dm.cursor_disable();
|
||||
for(auto i = 0 ; i < argc ; ++i){
|
||||
auto faken = dm.prep_image(argv[i], blitter, scalemode, -1,
|
||||
dm.get_dim_x() - (lmargin + rmargin));
|
||||
@ -354,6 +355,7 @@ int direct_mode_player(int argc, char** argv, ncscale_e scalemode,
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
dm.cursor_enable();
|
||||
return failed ? -1 : 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user