Skip to content

Commit

Permalink
chafa: Polite mode is now opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed Sep 21, 2023
1 parent 09b0f44 commit 0356373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions docs/chafa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ option to select the appropriate graphics protocol.
<varlistentry>
<term><option>--polite <replaceable>bool</replaceable></option></term>
<listitem><para>
Polite mode [on, off]. Defaults to on. Turning this off may enhance presentation
and prevent interference from other programs, but risks leaving the terminal in
an altered state (rude).
Polite mode [on, off]. Inhibits escape sequences that on rare occasions
may confuse the terminal or other programs. Defaults to off.
</para></listitem>
</varlistentry>

Expand Down
8 changes: 3 additions & 5 deletions tools/chafa/chafa.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,8 @@ print_summary (void)
" rows instead for e.g. 'less -R' interop. Defaults to off.\n"
" --passthrough=MODE Graphics protocol passthrough [auto, none, screen,\n"
" tmux]. Used to show pixel graphics through multiplexers.\n"
" --polite=BOOL Polite mode [on, off]. Defaults to on. Turning this off\n"
" may enhance presentation and prevent interference from\n"
" other programs, but risks leaving the terminal in an\n"
" altered state (rude).\n"
" --polite=BOOL Polite mode [on, off]. Inhibits escape sequences that may\n"
" confuse other programs. Defaults to off.\n"

"\nSize and layout:\n"

Expand Down Expand Up @@ -1750,7 +1748,7 @@ parse_options (int *argc, char **argv [])
options.dither_intensity = 1.0;
options.animate = TRUE;
options.center = FALSE;
options.polite = TRUE;
options.polite = FALSE;
options.preprocess = TRUE;
options.relative_set = FALSE;
options.fg_only = FALSE;
Expand Down

0 comments on commit 0356373

Please sign in to comment.