summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-08-25 17:59:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-08-25 17:59:50 +0900
commitffd23141206a0b0ed03d899adcbcc88ed7b2e8d9 (patch)
treeb9a50dcb86c82cbdc330662dc897ae42b072e025 /man
parent815b595d2fdd321e736a86f0b582d8c379d63e8f (diff)
Restore --no-clear option in man page
Close #3411
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.115
1 files changed, 15 insertions, 0 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 70a90649..e9de4fe1 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -759,6 +759,21 @@ Read input delimited by ASCII NUL characters instead of newline characters
.B "--print0"
Print output delimited by ASCII NUL characters instead of newline characters
.TP
+.B "--no-clear"
+Do not clear finder interface on exit. If fzf was started in full screen mode,
+it will not switch back to the original screen, so you'll have to manually run
+\fBtput rmcup\fR to return. This option can be used to avoid flickering of the
+screen when your application needs to start fzf multiple times in order. (Note
+that in most cases, it is preferable to use \fBreload\fR action instead.)
+
+e.g.
+ \fBfoo=$(seq 100 | fzf --no-clear) || (
+ # Need to manually switch back to the main screen when cancelled
+ tput rmcup
+ exit 1
+ ) && seq "$foo" 100 | fzf
+
+.TP
.B "--sync"
Synchronous search for multi-staged filtering. If specified, fzf will launch
ncurses finder only after the input stream is complete.