mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
ncplayer: suppress banners when given 'q' #1342
This commit is contained in:
parent
3e39b6c0a3
commit
898f34f924
@ -68,6 +68,9 @@ to resume.
|
||||
|
||||
# NOTES
|
||||
|
||||
If you're looking for a fast, inline image viewer for the shell, try using
|
||||
**ncplayer -k -t0 -q**.
|
||||
|
||||
Optimal display requires a terminal advertising the **rgb** terminfo(5)
|
||||
capability, or that the environment variable **COLORTERM** is defined to
|
||||
**24bit** (and that the terminal honors this variable), along with a
|
||||
|
@ -273,6 +273,9 @@ auto main(int argc, char** argv) -> int {
|
||||
auto nonopt = handle_opts(argc, argv, ncopts, &quiet, ×cale, &scalemode,
|
||||
&blitter, &displaytime, &loop);
|
||||
ncopts.flags |= NCOPTION_INHIBIT_SETLOCALE;
|
||||
if(quiet){
|
||||
ncopts.flags |= NCOPTION_SUPPRESS_BANNERS;
|
||||
}
|
||||
NotCurses nc{ncopts};
|
||||
if(!nc.can_open_images()){
|
||||
nc.stop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user