Skip to content

Commit

Permalink
ncplayer: suppress banners when given 'q' #1342
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Feb 9, 2021
1 parent 3e39b6c commit 898f34f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/man/man1/ncplayer.1.md
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/player/play.cpp
Expand Up @@ -273,6 +273,9 @@ auto main(int argc, char** argv) -> int {
auto nonopt = handle_opts(argc, argv, ncopts, &quiet, &timescale, &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();
Expand Down

0 comments on commit 898f34f

Please sign in to comment.