diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-25 19:29:37 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-25 19:30:41 +0900 |
commit | 11841f688bd12e56c11dc2ae71911a1e25213951 (patch) | |
tree | 25732a5add40e7d70ac01450ab18e1e133a8e15f /man | |
parent | 03c4f042463b2cf96dbb05fdbd06cfbb4903e6c8 (diff) |
Add support for text styling using --color
Close #1663
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/fzf.1 | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index f48c8424..b8898f3e 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -267,11 +267,9 @@ Enable processing of ANSI color codes .BI "--tabstop=" SPACES Number of spaces for a tab character (default: 8) .TP -.BI "--color=" "[BASE_SCHEME][,COLOR:ANSI]" +.BI "--color=" "[BASE_SCHEME][,COLOR_NAME[:ANSI_COLOR][:ANSI_ATTRIBUTES]]..." Color configuration. The name of the base color scheme is followed by custom -color mappings. Ansi color code of -1 denotes terminal default -foreground/background color. You can also specify 24-bit color in \fB#rrggbb\fR -format. +color mappings. .RS .B BASE SCHEME: @@ -282,7 +280,7 @@ format. \fB16 \fRColor scheme for 16-color terminal \fBbw \fRNo colors (equivalent to \fB--no-color\fR) -.B COLOR: +.B COLOR NAMES: \fBfg \fRText \fBbg \fRBackground \fBpreview-fg \fRPreview window text @@ -300,10 +298,24 @@ format. \fBspinner \fRStreaming input indicator \fBheader \fRHeader +.B ANSI COLORS: + \fB-1 \fRDefault terminal foreground/background color + \fB \fR(or the original color of the text) + \fB0 ~ 15 \fR16 base colors + \fB16 ~ 255 \fRANSI 256 colors + \fB#rrggbb \fR24-bit colors + +.B ANSI ATTRIBUTES: (Only applies to foreground colors) + \fBregular \fRClears previously set attributes; should precede the other ones + \fBbold\fR + \fBunderline\fR + \fBitalic\fR + \fBreverse\fR + .B EXAMPLES: \fB# Seoul256 theme with 8-bit colors - # (https://github.com/junegunn/seoul256.vim) + # (https://github.com/junegunn/seoul256.vim) fzf --color='bg:237,bg+:236,info:143,border:240,spinner:108' \\ --color='hl:65,fg:252,header:65,fg+:252' \\ --color='pointer:161,marker:168,prompt:110,hl+:108' |