g{unrestricted} flag is provided for a third time, then this flag is automatically enabled. .sp This flag overrides the \flag{text} flag. block-bufferedno-block-bufferedForce block buffering. When enabled, ripgrep will use block buffering. That is, whenever a matching line is found, it will be written to an in-memory buffer and will not be written to stdout until the buffer reaches a certain size. This is the default when ripgrep's stdout is redirected to a pipeline or a file. When ripgrep's stdout is connected to a tty, line buffering will be used by default. Forcing block buffering can be useful when dumping a large amount of contents to a tty. .sp This overrides the \flag{line-buffered} flag. byte-offsetno-byte-offsetPrint the byte offset for each matching line. Print the 0-based byte offset within the input file before each line of output. If \flag{only-matching} is specified, print the offset of the matched text itself. .sp If ripgrep does transcoding, then the byte offset is in terms of the result of transcoding and not the original data. This applies similarly to other transformations on the data, such as decompression or a \flag{pre} filter. case-sensitiveSearch case sensitively (default). Execute the search case sensitively. This is the default mode. .sp This is a global option that applies to all patterns given to ripgrep. Individual patterns can still be matched case insensitively by using inline regex flags. For example, \fB(?i)abc\fP will match \fBabc\fP case insensitively even when this flag is used. .sp This flag overrides the \flag{ignore-case} and \flag{smart-case} flags. colorWHENWhen to use color. This flag controls when to use colors. The default setting is \fBauto\fP, which means ripgrep will try to guess when to use colors. For example, if ripgrep is printing to a tty, then it will use colors, but if it is redirected to a file or a pipe, then it will suppress color output. .sp ripgrep will suppress color output by default in some other circumstances as well. These include, but are not limited to: .sp .IP \(bu 3n When the \fBTERM\fP environment variable is not set or set to \fBdumb\fP. .sp .IP \(bu 3n When the \fBNO_COLOR\fP environment variable is set (regardless of value). .sp .IP \(bu 3n When flags that imply no use for colors are given. For example, \flag{vimgrep} and \flag{json}. . .PP The possible values for this flag are: .sp .IP \fBnever\fP 10n Colors will never be used. .sp .IP \fBauto\fP 10n The default. ripgrep tries to be smart. .sp .IP \fBalways\fP 10n Colors will always be used regardless of where output is sent. .sp .IP \fBansi\fP 10n Like 'always', but emits ANSI escapes (even in a Windows console). . .PP This flag also controls whether hyperlinks are emitted. For example, when a hyperlink format is specified, hyperlinks won't be used when color is suppressed. If one wants to emit hyperlinks but no colors, then one must use the \flag{colors} flag to manually set all color styles to \fBnone\fP: .sp .EX \-\-colors 'path:none' \\ \-\-colors 'line:none' \\ \-\-colors 'column:none' \\ \-\-colors 'match:none' .EE .sp neverautoalwaysansi